Part Number Hot Search : 
MX826DW 9516L25 74LVCH E005705 DB1507S C4064 56F8157 2SK2957S
Product Description
Full Text Search
 

To Download ATXMEGA32D4 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  features ? high-performance, low-power 8/16-bit atmel ? avr ? xmega ? microcontroller ? non-volatile program and data memories ? 16 kb - 128 kb of in-system self-programmable flash ? 4 kb - 8 kb boot code sectio n with independent lock bits ? 1 kb - 2 kb eeprom ? 2 kb - 8 kb internal sram ? peripheral features ? four-channel event system ? four 16-bit timer/counters three timer/counters wi th 4 output compare or input capture channels one timer/counter with 2 output compare or input capture channels high-resolution extensions on two timer/counters advanced waveform extension on one timer/counter ? two usarts irda extension on one usart ? two two-wire interfaces with dual address match (i 2 c and smbus compatible) ? two spis (serial peripheral interfaces) peripherals ? 16-bit real time counter with separate oscillator ? one twelve-channel, 12-bit, 200 ks ps analog to digital converter ? two analog comparators wi th window co mpare function ? external interrupts on a ll general purpose i/o pins ? programmable watchdog timer with sepa rate on-chip ultra low power oscillator ? special microcontroller features ? power-on reset and programmable brown-out detection ? internal and external clock options with pll ? programmable multi-level interrupt controller ? sleep modes: idle, power-down, stan dby, power-save, extended standby ? advanced programming, test and debugging interface pdi (program and debug interface) fo r programming, test and debugging ? i/o and packages ? 34 programmable i/o lines ? 44-lead tqfp ? 44-pad vqfn/qfn ? 49-ball vfbga ? operating voltage ? 1.6 ? 3.6v ? speed performance ? 0 ? 12 mhz @ 1.6 ? 3.6v ? 0 ? 32 mhz @ 2.7 ? 3.6v typical applications ? industrial control ? climate control ? hand-held battery applications ? factory automation ? zigbee ? power tools ? building control ? motor control ? hvac ? board control ? networking ? metering ? white goods ? optical ? medical applications 8/16-bit xmega d4 microcontroller atxmega128d4 atxmega64d4 ATXMEGA32D4 atxmega16d4 8135j?avr?12/10
2 8135j?avr?12/10 xmega d4 1. ordering information notes: 1. this device can also be supplied in wafer form. please contact your local atmel sales office for detailed ordering info rmation. 2. pb-free packaging, complies to the european directive for restriction of hazardous subst ances (rohs directive). also halide free and fully green. 3. for packaging information see ?packaging information? on page 55 . ordering code flash e 2 sram speed (mhz) power supply package (1)(2)(3) temp atxmega128d4- au 128 kb + 8 kb 2 kb 8 kb 32 1.6 - 3.6v 44a -40c - 85c atxmega64d4-au 64 kb + 4 kb 2 kb 4 kb 32 1.6 - 3.6v ATXMEGA32D4-au 32 kb + 4 kb 1 kb 4 kb 32 1.6 - 3.6v atxmega16d4-au 16 kb + 4 kb 1 kb 2 kb 32 1.6 - 3.6v atxmega128d4- mh 128 kb + 8 kb 2 kb 8 kb 32 1.6 - 3.6v 44m1 atxmega64d4-mh 64 kb + 4 kb 2 kb 4 kb 32 1.6 - 3.6v ATXMEGA32D4-mh 32 kb + 4 kb 1 kb 4 kb 32 1.6 - 3.6v atxmega16d4-mh 16 kb + 4 kb 1 kb 2 kb 32 1.6 - 3.6v ATXMEGA32D4-cu 32 kb + 4 kb 1 kb 4 kb 32 1.6 - 3.6v 49c2 atxmega16d4-cu 16 kb + 4 kb 1 kb 2 kb 32 1.6 - 3.6v package type 44a 44-lead, 10 x 10 mm body size, 1.0 mm body thickness, 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) 44m1 44-pad, 7 x 7 x 1.0 mm body, lead pitch 0.50 mm, 5.20 mm ex posed pad, thermally enhanced plastic very thin quad no lead package (vqfn) 49c2 49-ball (7 x 7 array), 0.65 mm pitch, 5.0 x 5.0 x 1.0 mm, very thin, fine-pitch ball grid array package (vfbga)
3 8135j?avr?12/10 xmega d4 2. pinout/block diagram figure 2-1. bock diagram and tqfp/qfn pinout notes: 1. for full details on pinout and pin functions refer to ?pinout and pin functions? on page 46 . 2. the large center pad underneath the qfn/mlf package shou ld be soldered to ground on the board to ensure good mechanical stability. i n dex cor n er pa 5 pa 6 pa 7 pb0 pb1 pb2 pb3 g n d v cc pc0 pc1 12 13 14 15 16 17 1 8 19 20 21 22 44 43 42 41 40 39 3 8 37 36 35 34 33 32 31 30 29 2 8 27 26 25 24 23 1 2 3 4 5 6 7 8 9 10 11 pc2 pc3 pc4 pc5 pc6 pc7 g n d v cc pd0 pd1 pd2 pe3 pe2 v cc g n d pe1 pe0 pd7 pd6 pd5 pd4 pd3 pa 4 pa 3 pa 2 pa 1 pa 0 a v cc g n d pr1 pr0 reset/pdi pdi flash ram e 2 prom interr u pt controller ocd adc a ac a0 ac a1 a port b e v ent system ctrl t/c0:1 port r po w er control reset control watchdog osc/clk control bod por rtc e v e n t routi n g n etwork data b u s data b u s v ref temp port c cpu port a usart0 twi spi t/c0 port d usart0 spi t/c0 port e twi
4 8135j?avr?12/10 xmega d4 figure 2-2. vfbga pinout table 2-1. vfbga pinout 123456 a pa3 avcc gnd pr1 pr0 pdi pe3 b pa4 pa1 pa0 gnd reset/pdi pe2 vcc c pa5 pa2 pa6 pa7 gnd pe1 gnd d pb1 pb2 pb3 pb0 gnd pd7 pe0 e gnd gnd pc3 gnd pd4 pd5 pd6 f vcc pc0 pc4 pc6 pd0 pd1 pd3 g pc1 pc2 pc5 pc7 gnd vcc pd2 a b c d e f g 1 234567 a b c d e f g 765432 1 top view bottom view
5 8135j?avr?12/10 xmega d4 3. overview the atmel ? avr ? xmega ? d4 is a family of low power, high performance and peripheral rich cmos 8/16-bit microcontrollers based on the avr ? enhanced risc architecture. by executing powerful instructions in a single clock cycle, the xmega d4 achieves throughputs approaching 1 million instructions per second (mips) per mhz allowing the system designer to optimize power consumption versus processing speed. the avr cpu combines a rich instruction set with 32 general purpose working registers. all the 32 registers are directly connected to the arithmetic logic unit (alu), allowing two independent registers to be accessed in one single instructi on, executed in one clock cycle. the resulting architecture is more code efficient while achi eving throughputs many times faster than conven- tional single-accumula tor or cisc based microcontrollers. the xmega d4 devices provide the following features: in-system programmable flash with read- w hile- w rite capabilities, internal eeprom and sram, four-channel event system, pro- grammable multi-level interrupt controller, 34 general purpose i/o lines, 16-bit real time counter (rtc), four flexible 16-bit timer/counters with compare modes and p w m, two usarts, two two- w ire interfaces (t w is), two serial peripheral in terfaces (spis), one twelve- channel 12-bit adc with optional differential input with programmable gain, two analog compar- ators with window mode, programmable w atchdog timer with separate internal oscillator, accurate internal oscillators with pll and prescaler and programmable brown-out detection. the program and debug interface (pdi), a fast 2-pin interface for programming and debugging, is available. the xmega d4 devices have five software selectable power saving modes. the idle mode stops the cpu while allowing the sram, event sy stem, interrupt controller and all peripherals to continue functioning. the power-down mode saves the sram and register contents but stops the oscillators, disabling all other functions until the next t w i or pin-change interrupt, or reset. in power-save mode, the asynchronous real time counter continues to run, allowing the appli- cation to maintain a timer base while the rest of the device is sleeping. in standby mode, the crystal/resonator oscillator is kept running whil e the rest of the device is sleeping. this allows very fast start-up from external crystal combined with low power consumption. in extended standby mode, both the main os cillator and the asynch ronous timer continue to run. to further reduce power consumption, the peripheral clock to each individual peripheral can optionally be stopped in active mode and in idle sleep mode. the device is manufactured using atmel's high-density nonvolatile memory technology. the pro- gram flash memory can be reprogrammed in-sys tem through the pdi. a bootloader running in the device can use any interface to download the application program to the flash memory. the bootloader software in the boot flash section will continue to run while the application flash section is updated, providing true read- w hile- w rite operation. by combining an 8/16-bit risc cpu with in-system self-programmable flash, the atmel xmega d4 is a powerful microcon- troller family that provides a highly flexible and cost effective solution for many embedded applications. the xmega d4 devices are supported with a full suite of program and system development tools including: c compilers, macro assemblers, program debugger/simulators, programmers, and evaluation kits.
6 8135j?avr?12/10 xmega d4 3.1 block diagram figure 3-1. xmega d4 block diagram power supervision por/bod & reset port a (8) port b (8) bus controller sram adca aca ocd pdi cpu a[0..7] b[0..7] interrupt controller data bus prog/debug controller vcc gnd oscillator control event system controller pdi_data reset/ pdi_clk sleep controller flash eeprom nvm controller ircom port c (8) pc[0..7] tcc0:1 usartc0:1 twic spic pd[0..7] port d (8) tcd0 usartd0 spid int. refs. arefa arefb tempref vcc/10 event routing network data bus watchdog timer watchdog oscillator oscillator circuits/ clock generation real time counter port r (2) xtal1/ tosc1 xtal2/ tosc2 pr[0..1] pe[0..3] tce0 usarte0 port e (4) twie
7 8135j?avr?12/10 xmega d4 4. resources a comprehensive set of development tools, app lication notes and datasheets are available for download on http:// www.atmel.com/avr. 4.1 recommended reading ?xmega d manual ? xmega application notes this device datasheet only contains part specif ic information and a short description of each peripheral and module. the xmega d manual describes the modules and peripherals in depth. the xmega application notes contain example code and show applied use of the modules and peripherals. the xmega manual and application notes are available from http://www.atmel.com/avr. 5. disclaimer for devices that are not available yet, typica l values contained in this datasheet are based on simulations and characterization of other av r xmega microcontrollers manufactured on the same process technology. min. and max val ues will be available after the device is characterized.
8 8135j?avr?12/10 xmega d4 6. avr cpu 6.1 features ? 8/16-bit high performan ce avr risc architecture ? 138 instructions ? hardware multiplier ? 32x8-bit registers directly connected to the alu ? stack in ram ? stack pointer accessible in i/o memory space ? direct addressing of up to 16m bytes of program and data memory ? true 16/24-bit access to 16/24-bit i/o registers ? support for for both 8-, 16- and 32-bit arithmetic ? configuration change protection of system critical features 6.2 overview the xmega d4 uses the 8/16-bit avr cpu. the main function of the cpu is program execu- tion. the cpu must therefore be able to access memories, perform calculations and control peripherals. interrupt handling is described in a separate section. figure 6-1 on page 8 shows the cpu block diagram. figure 6-1. cpu block diagram the avr uses a harvard architecture - with separate memories and buses for program and data. instructions in the program memory are executed with a single level pipeline. w hile one instruction is being executed, the next instruction is pre-fetched from the program memory. flash program memory instruction decode program counter ocd 32 x 8 general purpose registers alu multiplier instruction register status/ control peripheral module 1 peripheral module 2 eeprom pmic sram data bus data bus
9 8135j?avr?12/10 xmega d4 this concept enables instructions to be executed in every clock cycle. the program memory is in-system re-programmable flash memory. 6.3 register file the fast-access register file contains 32 x 8-bit general purpose working registers with a single clock cycle access time. this allows single-cycle ar ithmetic logic unit (alu ) operation. in a typ- ical alu operation, two operands are output from the register file, the operation is executed, and the result is stored back in the register file - in one clock cycle. six of the 32 registers can be used as three 16-b it indirect address register pointers for data space addressing - enabling efficient address calculations. one of these address pointers can also be used as an address pointer for look up tables in flash program memory. 6.4 alu - arithmetic logic unit the high performance arithmetic logic unit (a lu) supports arithmetic and logic operations between registers or between a constant and a regi ster. single register operations can also be executed. w ithin a single clock cycle, arithmetic operations between general purpose registers or between a register and an immediate are executed. after an arithmetic or logic operation, the status register is updated to reflect information about the result of the operation. the alu operations are divided into three main categories ? arithmetic, logical, and bit-func- tions. both 8- and 16-bit arithmetic is supported, and the instruction set allows for easy implementation of 32-bit arithmetic. the alu also provides a powerful multiplier supporting both signed and unsigned multiplication and fractional format. 6.5 program flow w hen the device is powered on, the cpu starts to execute instructions from the lowest address in the flash program memory ?0?. the program counter (pc) addresses the next instruction to be fetched. after a reset, the pc is set to location ?0?. program flow is provided by conditional and unconditional jump and call instructions, capable of addressing the whole address space directly. most avr instructions use a 16-bit word format, while a limited number uses a 32-bit format. during interrupts and subroutine calls, the return address pc is stored on the stack. the stack is effectively allocated in the general data sram, and consequently the stack size is only limited by the total sram size and the usage of the sr am. after reset the stack pointer (sp) points to the highest address in the internal sram. the sp is read/write accessible in the i/o memory space, enabling easy implementation of multiple stacks or stack areas. the data sram can easily be accessed through the five different addressing modes supported in the avr cpu.
10 8135j?avr?12/10 xmega d4 7. memories 7.1 features ? flash program memory ? one linear address space ? in-system programmable ? self-programming and bootloader support ? application section for application code ? application table section for application code or data storage ? boot section for application code or bootloader code ? separate lock bits and protection for all sections ? data memory ? one linear address space ? single cycle access from cpu ? sram ? eeprom byte and page accessible optional memory mapping for direct load and store ? i/o memory configuration and status register s for all peripherals and modules four bit-accessible general purpose register for global variables or flags ? production signature row memory for factory programmed data device id for each microcontroller device type serial number for each device oscillator calibration bytes adc and temperature sensor calibration data ? user signature row one flash page in size can be read and written from software content is kept after chip erase 7.2 overview the avr architecture has two main memory s paces, the program memory and the data mem- ory. in addition, the xmega d4 features an eeprom memory for no n-volatile data storage. all three memory spaces are linear and require no paging. the available me mory size configura- tions are shown in ?ordering information? on page 2 . in addition each device has a flash memory signature row for calibration data, device identification, serial number etc. non-volatile memory spaces can be locked for further write or read/write operations. this pre- vents unrestricted access to the application software.
11 8135j?avr?12/10 xmega d4 7.3 in-system programmable flash program memory the xmega d4 devices contain on-chip in-system programmable flash memory for program storage, see figure 7-1 on page 11 . since all avr instructions are 16- or 32-bits wide, each flash address location is 16 bits. the program flash memory space is divided into application and boot sections. both sections have dedicated lock bits for setting restrict ions on write or read/write operations. the store program memory (spm) instruction must reside in the boot section when used to write to the flash memory. a third section inside the applicat ion section is referred to as the application table section which has separate lock bits for storage of write or read/write protection. the application table sec- tion can be used for storing non-volatile data or application software. the application table section and boot sect ion can also be used for general application software. figure 7-1. flash program memory (hexadecimal address) word address 0 application section (128k/64 kb/32 kb/16 kb) ... efff / 77ff / 37ff / 17ff f000 / 7800 / 3800 / 1800 application table section (4 kb/4 kb/4 kb/4 kb) ffff / 7fff / 3fff / 1fff 10000 / 8000 / 4000 / 2000 boot section (8 kb/4 kb/4 kb/4 kb) 10fff / 87ff / 47ff / 27ff
12 8135j?avr?12/10 xmega d4 7.4 data memory the data memory cont aints the i/o memory, eeprom and sr am memories, all within one lin- ear address space, see figure 7-2 on page 12 . to simplify development, the memory map for all devices in the family is identical and with empt y, reserved memory space for smaller devices. 7.4.1 i/o memory all peripherals and modules are addressable through i/o memory locations in the data memory space. all i/o memory locations can be accessed by the load (ld/lds/ldd) and store (st/sts/std) instructions, transferring data between the 32 general purpose registers in the cpu and the i/o memory. the in and out instructions can address i/o memory locations in the range 0x00 - 0x3f directly. i/o registers within the address range 0x00 - 0x1f are directly bit-acce ssible using the sbi and cbi instructions. the value of single bits can be checked by using the sbis and sbic instruc- tions on these registers. the i/o memory address for all peripherals and modules in xmega d4 is shown in the ?periph- eral module address map? on page 50 . 7.4.2 sram data memory the xmega d4 devices have internal sram memory for data storage. figure 7-2. data memory map (hexadecimal address) byte address atxmega64d4 byte address ATXMEGA32D4 byte address atxmega16d4 0 i/o registers (4kb) 0 i/o registers (4kb) 0 i/o registers (4kb) fff fff fff 1000 eeprom (2k) 1000 eeprom (1 kb) 1000 eeprom (1 kb) 17ff 13ff 13ff reserved reserved reserved 2000 internal sram (4 kb) 2000 internal sram (4 kb) 2000 internal sram (2 kb) 2fff 2fff 27ff byte address atxmega128d4 0 i/o registers (4 kb) fff 1000 eeprom (2k) 17ff reserved 2000 internal sram (8k) 3fff
13 8135j?avr?12/10 xmega d4 7.4.3 eeprom data memory the xmega d4 devices have internal eeprom me mory for non-volatile data storage. it is addressable either in a separate data space or it can be memory mapped into the normal data memory space. the eeprom memory supports both byte and page access. 7.5 production signature row the production signature row is a separate memory section for factory programmed data. it contains calibration data for functions such as oscillators and analog modules. the production signature row also contains a dev ice id that identify each microcontroller device type, and a serial number that is unique for each manufactured device. the device id for the available xmega a4 devices is shown in table 7-1 on page 13 . the serial number consist of the production lot number, wafer number, and wafer coordinates for the device. the production signature row can not be written or erased, but it can be read from both applica- tion software and external programming. table 7-1. device id bytes for xmega d4 devices. 7.6 user signature row the user signature row is a separate memory section that is fully accessible (read and write) from application software and external programming. the user signature row is one flash page in size, and is meant for static user parameter storage, such as calibration data, custom serial numbers or identification numbers, random number seeds etc. this section is not erased by chip erase commands that erase the flash, and requires a dedicated erase command. this ensures parameter storage during multiple program/erase session and on-chip debug sessions. 7.7 flash and eeprom page size the flash program memory and eeprom data memory are organize d in pages. the pages are word accessible for the flash and byte accessible for the eeprom. table 7-2 on page 14 shows the flash program memory organization. flash write and erase operations are performed on one page at the time, while reading the flash is done one byte at the time. for flash access the z-pointer (z[m:n]) is used for addressing. the most significant bits in the address (fpage) give the page number and the least significant address bits (f w ord) give the word in the page. device device id bytes byte 2 byte 1 byte 0 atxmega16d4 42 94 1e ATXMEGA32D4 42 95 1e atxmega64d4 47 96 1e atxmega128d4 47 97 1e
14 8135j?avr?12/10 xmega d4 table 7-2. number of words and pages in the flash. table 7-3 on page 14 shows eeprom memory organizat ion for the xmega d4 devices. eeprom write and erase operations can be perfor med one page or one by te at the time, while reading the eeprom is done one byte at the time. for eeprom access the nvm address register (addr[m:n]) is used for addressing. th e most significant bits in the address (e2page) give the page number and the least significant address bits (e2byte) give the byte in the page. table 7-3. number of bytes and pages in the eeprom. devices flash page size fword fpage application boot size (words) size no of pages size no of pages atxmega16d4 16 kb + 4 kb 128 z[6:0] z[13:7] 16 kb 64 4 kb 16 ATXMEGA32D4 32 kb + 4 kb 128 z[6:0] z[14:7] 32 kb 128 4 kb 16 atxmega64d4 64 kb + 4 kb 128 z[6:0] z[15:7] 64 kb 256 4 kb 16 atxmega128d4 128 kb + 8 kb 256 z[7:0] z[16:8] 128 kb 256 8 kb 16 devices eeprom page size e2byte e2page no of pages size (bytes) atxmega16d4 1 kb 32 addr[4:0] addr[10:5] 32 ATXMEGA32D4 1 kb 32 addr[4:0] addr[10:5] 32 atxmega64d4 2 kb 32 addr[4:0] addr[10:5] 64 atxmega128d4 2 kb 32 addr[4:0] addr[10:5] 64
15 8135j?avr?12/10 xmega d4 8. event system 8.1 features ? inter-peripheral communication and signalling with minimum latency ? cpu independent operation ? 4 event channels allow for up to 4 si gnals to be routed at the same time ? 100% predictable timing between peripherals ? events can be generated by ? timer/counters (tcxn) ? real time counter (rtc) ? analog to digital converter (adcx) ? analog comparator (acx) ? ports (portx) ? system clock (clk sys ) ? software (cpu) ? events can be used by ? timer/counters (tcxn) ? analog to digital converter (adcx) ? ports (portx) ? ir communication module (ircom) ? the same event can be used by multip le peripherals for synchronized timing ? advanced features ? manual event generati on from software (cpu) ? quadrature decoding ? digital filtering ? functiond in active and idle mode 8.2 overview the event system is a set of features for inter-peripheral communication. it enables the possibil- ity for a change of state in one peripheral to automatically trigger actions in other peripherals. the change of state in a peripheral that will trigger actions in other periphe rals is configurable in software. it is a simple, but power ful system as it allows for auto nomous control of peripherals without any use of interrupt, cpu resource. the indication of a change in a peripheral is re ferred to as an event, and is usually the same as the interrupt conditions for that peripheral. events are passed between peripherals using a dedi- cated routing network called the event routing network. figure 8-1 on page 16 shows a basic block diagram of the event system with the event routing network and the peripherals to which it is connected. this highly flexible system can be used for simple routing of signals, pin func- tions or for sequencing of events. the maximum latency is two cpu clock cycles from when an event is generated in one periph- eral, until the actions are triggered in one or more other peripherals. the event system is functional in both active and idle modes.
16 8135j?avr?12/10 xmega d4 figure 8-1. event system block diagram the event routing network can directly connect together adcs, analog comparators (acx), i/o ports (portx), the real-time counter (rtc ), timer/counters (t/c) and the ir communica- tion module (ircom). events can also be generated from software (cpu). all events from all peripherals are always routed into the event routing network. this consist of eight multiplexers where each can be configured in software to select which event to be routed into that event channel. all eight event channels are connected to the peripherals that can use events, and each of these peripherals can be co nfigured to use events from one or more event channels to automatically trigger a software selectable action. adcx event routing network portx cpu acx rtc t/cxn ircom clk sys
17 8135j?avr?12/10 xmega d4 9. system clock and clock options 9.1 features ? fast start-up time ? safe run-time clock switching ? internal oscillators: ? 32 mhz run-time cal ibrated rc oscillator ? 2 mhz run-time calibrated rc oscillator ? 32.768 khz calibrated rc oscillator ? 32 khz ultra low power (ulp) oscillator with 1 khz output ? external clock options ? 0.4 - 16 mhz crystal oscillator ? 32.768 khz crystal oscillator ? external clock ? pll with internal and external clock options with 1 to 31x multiplication ? clock prescalers with 1 to 2048x division ? fast peripheral clock running at time the cpu clock speed ? automatic run-time calibration of internal oscillators ? crystal oscillator failure detection 9.2 overview xmega d4 has an advanced clock system, supporting a large number of clock sources. it incor- porates both accurate in tegrated oscillators, external crystal oscillators and resonators. a high frequency phase locked loop (pll) and clock prescalers can be used to generate a wide range of clock frequencies. a calibration feature (dfll) is available, and can be used for automatic run-time calibration of t he internal oscillators. a crystal osc illator failure monitor can be enabled to issue a non-maskable in terrupt and switch to internal oscillator if t he external oscillator fails. after reset, the device will always start up running from the 2 mhz internal oscillator. during nor- mal operation, the system clock source and prescalers can be changed from software at any time. a crystal oscillator failure m onitor can be enabled to issue a non-maskable interrupt and switch to internal oscillator if the external oscillator fails. figure 9-1 on page 18 shows the princi- pal clock system in xmega d4.
18 8135j?avr?12/10 xmega d4 figure 9-1. clock system overview each clock source is briefly described in th e following sub-sections. 9.3 clock options 9.3.1 32 khz ultra low power internal oscillator the 32 khz ultra low power (ulp) internal oscillator is a very low power consumption clock source. it is used for the w atchdog timer, brown-out detecti on and as an asynchronous clock source for the real time counter. this oscill ator cannot be used as the system clock source, and it cannot be directly controlled from software. 9.3.2 32.768 khz calibrated internal oscillator the 32.768 khz calibrated internal oscillator is a high accuracy clock source that can be used as the system clock source or as an asynchronous clock source for the real time counter. it is calibrated during production to provide a default frequency which is close to its nominal frequency. 32 mhz run-time calibrated internal oscillator 32 khz ulp internal oscillator 32.768 khz calibrated internal oscillator 32.768 khz crystal oscillator 0.4 - 16 mhz crystal oscillator 2 mhz run-time calibrated internal oscillator external clock input clock control unit with pll and prescaler wdt/bod clk ulp rtc clk rtc evsys peripherals adc ports ... clk per interrupt ram nvm memory flash eeprom cpu clk cpu
19 8135j?avr?12/10 xmega d4 9.3.3 32.768 khz crystal oscillator the 32.768 khz crystal oscillator is a low power driver for an external watch crystal. it can be used as system clock source or as asynchrono us clock source for the real time counter. 9.3.4 0.4 - 16 mhz crystal oscillator the 0.4 - 16 mhz crystal oscillator is a driver in tended for driving both external resonators and crystals ranging from 400 khz to 16 mhz. 9.3.5 2 mhz run-time calibrated internal oscillator the 2 mhz run-time calibrated internal oscillato r is a high frequency oscillator. it is calibrated during production to provide a def ault frequency which is close to its nominal frequency. the oscillator can use the 32 khz calibra ted internal oscillato r or the 32 khz crys tal oscillator as a source for calibrating the frequency run-time to compensate for temperature and voltage drift hereby optimizing the ac curacy of the oscillator. 9.3.6 32 mhz run-time calibrated internal oscillator the 32 mhz run-time calibrated inte rnal oscillator is a high frequen cy oscillator. it is calibrated during production to provide a def ault frequency which is close to its nominal frequency. the oscillator can use the 32.768 khz calibrated inter nal oscillator or the 32 khz crystal oscillator as a source for calibrating the frequency run-time to compensate for temperature and voltage drift hereby optimizing the accuracy of the oscillator. 9.3.7 external clock input the external clock input gives the possibility to connect a clock from an external source. 9.3.8 pll with multiplication factor 1 - 31x the pll provides the possibility of multiplying a frequency by any number from 1 to 31. in com- bination with the prescalers, this gives a wide range of output frequencies from all clock sources.
20 8135j?avr?12/10 xmega d4 10. power management and sleep modes 10.1 features ? 5 sleep modes ?idle ? power-down ?power-save ?standby ? extended standby ? power reduction registers to disable clocks to unused peripherals 10.2 overview xmega provides various sleep modes and software controlled clock gating in order to tailor power consumption to the application's requirement. sleep modes enables the microcontroller to shut down unused modules to save power. w hen the device enters sleep mode, program exe- cution is stopped and interrupts or reset is used to wake the device again. the individual clock to unused peripherals can be stopped during normal oper ation or in sleep, enabling a much more fine tuned power management than sleep modes alone 10.3 sleep modes sleep modes are used to shut down modules and clock domains in the microcontroller in order to save power. xmega ha s five different sleep modes. a de dicated sleep instruction (sleep) is available to enter sleep. before executing sleep, the selected sleep mode to enter must be configured. the available interrupt wake-up sources is dependent on the selected sleep mode. w hen an enabled interrupt occurs the device will wake up and ex ecute the interr upt service rou- tine before continuing normal program execution from the first instruction after the sleep instruction. if other higher priority interrupts are pending when the wake-up occurs, their interrupt service routines will be executed a ccording to their priority before the interrupt serv ice routine for the wake-up interrupt is executed . after wake-up th e cpu is halted for four cycles before execu- tion starts. 10.3.1 idle mode in idle mode the cpu and non-volatile memory are stopped, but all peripherals including the interrupt controller and event system are kept running. interrupt requests from all enabled inter- rupts will wake the device. 10.3.2 power-down mode in power-down mode all system clock sources, and the asynchronous real time counter (rtc) clock source, are stopped. this allows operatio n of asynchronous modules only. the only inter- rupts that can wake up the mcu are the two w ire interface address match interrupts, and asynchronous port interrupts. 10.3.3 power-save mode power-save mode is identical to power-down, with one exception: if the real time counter (rtc) is enabled, it will keep running during sl eep and the device can also wake up from either rtc overflow or compare match interrupt.
21 8135j?avr?12/10 xmega d4 10.3.4 standby mode standby mode is identical to power-down with the exception that all enabled system clock sources are kept running, while the cpu, periph eral and rtc clocks are stopped. this reduces the wake-up time when external crystals or resonators are used. 10.3.5 extended standby mode extended standby mode is identical to power-sav e mode with the exception that all enabled system clock sources are kept ru nning while the cpu and periph eral clocks are stopped. this reduces the wake-up time when external crystals or resonators are used.
22 8135j?avr?12/10 xmega d4 11. system control and reset 11.1 features ? multiple reset sources for safe operation and device reset ? power-on reset ? external reset ? watchdog reset the watchdog timer runs from separate, dedica ted oscillator ? brown-out reset accurate, programmable brown-out levels ? pdi reset ? software reset ? asynchronous reset ? no running clock in the device is required for reset ? reset status register 11.2 resetting the avr during reset, all i/o registers are set to their initial values. the sram content is not reset. appli- cation execution starts from the reset vector. the instruction placed at the reset vector should be an absolute jump (jmp) instruction to the reset handling routine. by default the reset vector address is the lowest flash program memory address, ?0?, but it is possible to move the reset vector to the first address in the boot section. the i/o ports of the avr are immediately tri-stated when a reset source goes active. the reset functionality is asynchronous, so no running clock is required to reset the device. after the device is reset, the reset source can be determined by the application by reading the reset status register. 11.3 reset sources 11.3.1 power-on reset the mcu is reset when the supp ly voltage vcc is below the po wer-on reset threshold voltage. 11.3.2 external reset the mcu is reset when a low leve l is present on the reset pin. 11.3.3 watchdog reset the mcu is reset when the w atchdog timer period expires and the w atchdog reset is enabled. the w atchdog timer runs from a dedicated oscillator independent of the system clock. for more details see ? w dt - w atchdog timer? on page 23 . 11.3.4 brown-out reset the mcu is reset when the supply voltage vcc is below the brown-out reset threshold voltage and the brown-out detector is enabled. the brown-out threshold voltage is programmable.
23 8135j?avr?12/10 xmega d4 11.3.5 pdi reset the mcu can be reset through the program and debug interface (pdi). 11.3.6 software reset the mcu can be reset by the cpu writing to a special i/o register through a timed sequence. 12. wdt - watchdog timer 12.1 features ? 11 selectable timeout periods, from 8 ms to 8s. ? two operation modes ? standard mode ? window mode ? runs from the 1 khz output of th e 32 khz ultra low power oscillator ? configuration lock to prevent unwanted changes 12.2 overview the xmega d4 has a w atchdog timer ( w dt). the w dt will run continuously when turned on and if the w atchdog timer is not reset within a software configurable time-out period, the micro- controller will be reset. the w atchdog reset ( w dr) instruction must be ru n by software to reset the w dt, and prevent microcontroller reset. the w dt has a w indow mode. in this mode the w dr instruction must be run within a specified period called a window. application software can set the minimum and maximum limits for this window. if the w dr instruction is not executed inside t he window limits, the microcontroller will be reset. a protection mechanism using a timed write se quence is implemented in order to prevent unwanted enabling, disabling or change of w dt settings. for maximum safety, the w dt also has an always-on mode. this mode is enabled by program- ming a fuse. in always-on mode, application software can not disable the w dt.
24 8135j?avr?12/10 xmega d4 13. pmic - programmable mult i-level interrupt controller 13.1 features ? separate interrupt vector for each interrupt ? short, predictable in terrupt response time ? programmable multi-level interrupt controller ? 3 programmable interrupt levels ? selectable priority scheme within low level interrupts (round-robin or fixed) ? non-maskable interrupts (nmi) ? interrupt vectors can be moved to the start of the boot section 13.2 overview xmega d4 has a programmable multi-level interrupt controller (pmic). all peripherals can define three different priority levels for interrupts; high, medium or low. medium level interrupts may interrupt low level interrupt service routines. high level interrupts may interrupt both low- and medium level interrupt service routines. low level interrupts have an optional round robin scheme to make sure all interrupts are serviced within a certain amount of time. the built in oscillator failure detection mechanism can issue a non-maskable interrupt (nmi). 13.3 interrupt vectors w hen an interrupt is serviced, t he program counter will ju mp to the interrupt vector address. the interrupt vector is the sum of the peripheral?s base interrupt address and the offset address for specific interrupts in each peripheral. the base addresses for the xmega d4 devices are shown in table 13-1 . offset addresses for each interrupt available in the peripheral are described for each peripheral in the xmega a manual. for peripherals or modules that have only one interrupt, the interrupt vector is shown in table 13-1 . the program address is the word address. table 13-1. reset and interrupt vectors program address (base address) source interrupt description 0x000 reset 0x002 oscf_int_vect crystal oscillato r failure interrupt vector (nmi) 0x004 portc_int_base port c interrupt base 0x008 portr_int_base port r interrupt base 0x014 rtc_int_base real time counter interrupt base 0x018 t w ic_int_base two- w ire interface on port c interrupt base 0x01c tcc0_int_base timer/counter 0 on port c interrupt base 0x028 tcc1_int_base timer/counter 1 on port c interrupt base 0x030 spic_int_vect spi on port c interrupt vector 0x032 usartc0_int_base usart 0 on port c interrupt base 0x040 nvm_int_base non-volatile memory interrupt base 0x044 portb_int_base port b interrupt base 0x056 porte_int_base port e interrupt base
25 8135j?avr?12/10 xmega d4 0x05a t w ie_int_base two- w ire interface on port e interrupt base 0x05e tce0_int_base timer/counter 0 on port e interrupt base 0x080 portd_int_base port d interrupt base 0x084 porta_int_base port a interrupt base 0x088 aca_int_base analog comparator on port a interrupt base 0x08e adca_int_base analog to digital converter on port a interrupt base 0x09a tcd0_int_base timer/counter 0 on port d interrupt base 0x0ae spid_int_vector spi on port d interrupt vector 0x0b0 usartd0_int_base usart 0 on port d interrupt base table 13-1. reset and interrupt vectors (continued) program address (base address) source interrupt description
26 8135j?avr?12/10 xmega d4 14. i/o ports 14.1 features ? selectable input and output configuration for each pin individually ? flexible pin configuration through dedicated pin configuration register ? synchronous and/or asynchronous input sensing with port interrupts and events ? sense both edges ? sense rising edges ? sense falling edges ? sense low level ? asynchronous wake-up from all input sensing configurations ? highly configurable output driver and pull settings: ? totem-pole ? pull-up/-down ? wired-and ? wired-or ? bus keeper ? inverted i/o ? flexible pin masking ? configuration of multiple pins in a single operation ? read-modify-write (rmw) support ? toggle/clear/set registers for output and direction registers ? clock output on port pin ? event channel 0 output on port pin 7 ? mapping of port registers (virtual port s) into bit accessible i/o memory space 14.2 overview the xmega d4 devices have flexible general purpos e i/o ports. a port consists of up to 8 pins, ranging from pin 0 to pin 7. the ports implemen t several functions, including synchronous/asyn- chronous input sensing, pin change interrupts and configurable output settings. all functions are individual per pin, but several pins may be configured in a single operation. 14.3 i/o configuration all port pins (pn) have programmable output configuration. in addition, all port pins have an inverted i/o function. for an input, this means in verting the signal between the port pin and the pin register. for an output, this means invert ing the output signal between the port register and the port pin. the inverted i/o function can be used also when the pin is used for alternate functions.
27 8135j?avr?12/10 xmega d4 14.3.1 push-pull figure 14-1. i/o configuration - totem-pole 14.3.2 pull-down figure 14-2. i/o configuration - totem-pole with pull-down (on input) 14.3.3 pull-up figure 14-3. i/o configuration - totem-pole with pull-up (on input) 14.3.4 bus-keeper the bus-keeper?s weak output produces the same logi cal level as the last output level. it acts as a pull-up if the last leve l was ?1?, and pull-down if the last level was ?0?. inn outn dirn pn inn outn dirn pn inn outn dirn pn
28 8135j?avr?12/10 xmega d4 figure 14-4. i/o configuration - totem-pole with bus-keeper 14.3.5 others figure 14-5. output configuration - w ired-or with optional pull-down figure 14-6. i/o configuration - w ired-and with optional pull-up inn outn dirn pn inn outn pn inn outn pn
29 8135j?avr?12/10 xmega d4 14.4 input sensing ? sense both edges ? sense rising edges ? sense falling edges ? sense low level input sensing is synchronous or asynchronous depending on the enabled clock for the ports, and the configuration is shown in figure 14-7 on page 29 . figure 14-7. input sensing system overview w hen a pin is configured with inverted i/o, the pin value is inverted before the input sensing. 14.5 port interrupt each port has two interrupts with separate priority and interrupt vector. all pins on the port can be individually selected as source for each of the interrupts. the interrupts are then triggered according to the input sense configuration for each pin configured as source for the interrupt. 14.6 alternate port functions in addition to the input/output functions on all po rt pins, most pins have alternate functions. this means that other modules or peripherals connected to the port can use the port pins for their functions, such as communication or pulse-width modulation. ?pinout and pin functions? on page 46 shows which modules on peripherals that enable alternate functions on a pin, and which alternate function is available on a pin. inverted i/o interrupt control ireq event pn d q r d q r synchronizer inn edge detect asynchronous sensing synchronous sensing edge detect
30 8135j?avr?12/10 xmega d4 15. t/c - 16-bit timer/counter 15.1 features ? four 16-bit timer/counters ? three timer/counters of type 0 ? one timer/counters of type 1 ? three compare or capture (cc) channels in timer/counter 0 ? two compare or capture (cc) channels in timer/counter 1 ? double buffered timer period setting ? double buffered compare or capture channels ? waveform generation: ? single slope pulse width modulation ? dual slope pulse width modulation ? frequency generation ? input capture: ? input capture with noise cancelling ? frequency capture ? pulse width capture ? 32-bit input capture ? event counter with direction control ? timer overflow and timer error interrupts and events ? one compare match or capture interrupt and event per cc channel ? hi-resolution extension (hi-res) ? advanced waveform extension (awex) 15.2 overview xmega d4 has four timer/counters, three time r/counter 0 and one timer/counter 1. the dif- ference between them is that timer/counter 0 has four compare/capture channels, while timer/counter 1 has two compare/capture channels. the timer/counters (t/c) are 16-bit and can count any clock, event or external input in the microcontroller. a programmable prescaler is available to get a useful t/c resolution. updates of timer and compare registers are double buffered to ensure glitch free operation. single slope p w m, dual slope p w m and frequency generation waveforms can be generated using the com- pare channels. through the event system, any input pin or event in the microcontroller can be used to trigger input capture, hence no dedicated pins are requ ired for this. the input capture has a noise can- celler to avoid incorrect capture of the t/c, and can be used to do frequency and pulse width measurements. a wide range of interrupt or event sources ar e available, including t/c overflow, compare match and capture for each compare/capture channel in the t/c. portc has one timer/counter 0 and one timer/counter1. portd and porte each have one timer/conter0. notation of these are tcc0 (time/counter c0), tcc1, tcd0 and tce0, respectively.
31 8135j?avr?12/10 xmega d4 figure 15-1. overview of a timer/counter and closely related peripherals the hi-resolution extension can be enabled to increase the waveform generation resolution by 2 bits (4x). this is available for all timer/counters. see ?hi-res - high resolution extension? on page 33 for more details. the advanced w aveform extension can be enabled to provide extra and more advanced fea- ture for the timer/counter. this is on ly available for timer/counter 0. see ?a w ex - advanced w aveform extension? on page 32 for more details. awex compare/capture channel d compare/capture channel c compare/capture channel b compare/capture channel a waveform generation buffer comparator hi-res fault protection capture control base counter counter control logic timer period prescaler dti dead-time insertion pattern generation clk per4 port event system clk per timer/counter
32 8135j?avr?12/10 xmega d4 16. awex - advanced waveform extension 16.1 features ? output with complementary output from each capture channel ? four dead time insertion (dti) un its, one for each capture channel ? 8-bit dti resolution ? separate high and low side dead-time setting ? double buffered dead-time ? event controlled fault protection ? single channel multiple output operation (for bldc motor control) ? double buffered pattern generation 16.2 overview the advanced w aveform extension (a w ex) provides extra features to the timer/counter in w aveform generation ( w g) modes. the a w ex enables easy and safe implementation of for example, advanced motor control (ac, bldc, sr , and stepper) and power control applications. any w g output from a timer/counter 0 is split into a complimentary pair of outputs when any a w ex feature is enabled. these output pairs go through a dead-time insertion (dti) unit that enables generation of the non-inverted low side (ls) and inverted high side (hs) of the w g output with dead time insertion between ls and hs switching. the dti output will override the normal port value according to the port override setting. optionally the final output can be inverted by using the invert i/o setting for the port pin. the pattern generation unit can be used to generate a synchronized bit pattern on the port it is connected to. in addition, the waveform generator output from compare channel a can be dis- tributed to, and override all port pins. w hen the pattern generator unit is enabled, the dti unit is bypassed. the fault protection unit is connected to the ev ent system. this enables any event to trigger a fault condition that will disable the a w ex output. several event channels can be used to trigger fault on several different conditions. the a w ex is available for tcc0. the notation of this is a w exc.
33 8135j?avr?12/10 xmega d4 17. hi-res - high r esolution extension 17.1 features ? increases waveform generator resolution by 2-bits (4x) ? supports frequency, single- and dual-slope pwm operation ? supports the awex when this is enable d and used for the same timer/counter 17.2 overview the hi-resolution (hi-res) extension is able to increase the resolution of the waveform genera- tion output by a factor of 4. w hen enabled for a timer/counter, the fast peripheral clock running at four times the cpu clock speed will be as input to th e timer/counter. the high resolution extension can also be used when an a w ex is enabled and used with a timer/counter. xmega d4 devices have one hi-res extension that can be enabled for each timer/counter on portc. the notation of this is hiresc.
34 8135j?avr?12/10 xmega d4 18. rtc - 16-bit real-time counter 18.1 features ? 16-bit timer ? flexible tick resolution ranging from 1 hz to 32.768 khz ? one compare register ? one period register ? clear timer on overflow or compare match ? overflow or compare match event and interrupt generation 18.2 overview the xmega d4 includes a 16-bit real-time counter (rtc). the rtc can be clocked from an accurate 32.768 khz crystal osc illator, the 32.768 khz ca librated internal osc illator, or from the 32 khz ultra low power internal oscillator. the rtc includes both a period and a compare register. for details, see figure 18-1 . a wide range of resolution and time-out periods can be configured using the rtc. w ith a max- imum resolution of 30.5 s, time-out periods range up to 2000 seconds. w ith a resolution of 1 second, the maximum time-out period is over 18 hours (65536 seconds). figure 18-1. real time counter overview 10-bit prescaler counter period compare = = overflow compare match 1.024 khz 32.768 khz
35 8135j?avr?12/10 xmega d4 19. twi - two-wire interface 19.1 features ? two identical twi peripherals ? simple yet powerful and flexible communication interface ? both master and sla ve operation supported ? device can operate as transmitter or receiver ? 7-bit address space allows up to 128 different slave addresses ? multi-master arbitration support ? up to 400 khz data transfer speed ? slew-rate limited output drivers ? noise suppression circuitry rejects spikes on bus lines ? fully programmable slave address with general call support ? address recognition causes w ake-up when in sleep mode ? i 2 c and system management bus (smbus) compatible 19.2 overview the two- w ire interface (t w i) is a bi-directional wired-and bus with only two lines, the clock (scl) line and the data (sda) line. the protocol makes it possible to interconnect up to 128 indi- vidually addressable devices. since it is a mult i-master bus, one or more devices capable of taking control of the bus can be connected. the only external hardware needed to implement the bus is a single pull-up resistor for each of the t w i bus lines. mechanisms for resolving bus contention are inherent in the t w i protocol. portc and porte each has one t w i. notation of these peripherals are t w ic and t w ie, respectively.
36 8135j?avr?12/10 xmega d4 20. spi - serial peripheral interface 20.1 features ? two identical spi peripherals ? full-duplex, three-wire synchronous data transfer ? master or slave operation ? lsb first or msb first data transfer ? seven programmable bit rates ? end of transmission interrupt flag ? write collision flag protection ? wake-up from idle mode ? double speed (ck/2) master spi mode 20.2 overview the serial peripheral interface (spi) allows high-speed full-duplex, synchronous data transfer between different devices. devices can communica te using a master-slave scheme, and data is transferred both to and from the devices simultaneously. portc and portd each has one spi. notation of these peripherals are spic and spid, respectively.
37 8135j?avr?12/10 xmega d4 21. usart 21.1 features ? two identical usart peripherals ? full duplex operation (independent se rial receive and transmit registers) ? asynchronous or synchronous operation ? master or slave clocked synchronous operation ? high-resolution arithmetic baud rate generator ? supports serial frames with 5, 6, 7, 8, or 9 data bits and 1 or 2 stop bits ? odd or even parity generation and parity check supported by hardware ? data overrun detection ? framing error detection ? noise filtering includes false start bit detection and digital low pass filter ? three separate interrupts on tx complete, tx data register empty and rx complete ? multi-processor communication mode ? double speed asynchronous communication mode ? master spi mode for spi communication ? irda support through the ircom module 21.2 overview the universal synchronous and asynchronous serial receiver and transmitter (usart) is a highly flexible serial communica tion module. the usart supports full duplex communication, and both asynchronous and clocked synchronous operation. the usart can also be set in master spi mode to be used for spi communication. communication is frame based, and the frame format can be customized to support a wide range of standards. the usart is buffered in both direction, enabling continued data transmis- sion without any delay between frames. there are separate interrupt vectors for receive and transmit complete, enabling fully interrupt driven communication. frame error and buffer over- flow are detected in hardware and indicated with separate status flags. even or odd parity generation and parity check can also be enabled. one usart can use the ircom module to suppor t irda 1.4 physical compliant pulse modula- tion and demodulation for baud rates up to 115.2 kbps. portc and portd each has one usart. notation of these peripherals are usartc0, and usartd0, respectively.
38 8135j?avr?12/10 xmega d4 22. ircom - ir communication module 22.1 features ? pulse modulation/demodulation for infrared communication ? compatible to irda 1.4 physical for baud rates up to 115.2 kbps ? selectable pulse modulation scheme ? 3/16 of baud rate period ? fixed pulse period, 8-bit programmable ? pulse modulation disabled ? built in filtering ? can be connected to and used by one usart at a time 22.2 overview xmega contains an infrared communication module (ircom) for irda communication with baud rates up to 115.2 kbps. this supports three modulation schemes: 3/16 of baud rate period, fixed programmable pulse time based on the peripheral clock speed, or pulse modulation dis- abled. there is one ircom available which can be connected to any usart to enable infrared pulse coding/decoding for that usart.
39 8135j?avr?12/10 xmega d4 23. adc - 12-bit analog to digital converter 23.1 features ? one adc with 12-bit resolution ? 200 ksps sample rate ? signed and unsign ed conversions ? 12 single ended inputs ? 8x4 differential inputs ? 3 internal inputs: ? integrated temperature sensor ? vcc voltage divided by 10 ? bandgap voltage ? software selectable gain of 2, 4, 8, 16, 32 or 64 ? software selectable accuracy of 8- or 12-bit. ? internal or external reference selection ? event triggered conversion for accurate timing ? interrupt/event on compare result 23.2 overview xmega d4 devices have one analog to digital converter (adc), see figure 23-1 on page 40 . the adc converts analog voltages to digital values. the adc has 12-bit resolution and is capable of converting up to 200k samples per second. the input selection is flexible, and both singleended and differential measurements can be done. for differential measurements an optional gain stage is available to increase the dynamic range. in addition several internal signal inputs are available. the adc can provide both signed and unsigned results. adc measurements can either be started by application software or an incoming event from another peripheral in the device. the latter ensure the adc measurements can be started with predictable timing, and without software intervention. the adc has one channel, meaning there is one input selection (mux selection) and one result register available. both internal and external analog reference voltages can be used. a very accurate internal 1.00v reference is available. an integrated temperature sensor is available and the output from this can be measured with the adc. a vcc/10 signal and the bandgap voltage can also be measured by the adc.
40 8135j?avr?12/10 xmega d4 figure 23-1. adc overview the adc may be configured for 8- or 12-bit result, reducing the minimum conversion time (prop- agation delay) from 0.5 s for 12-bit to 3.7 s for 8-bit result. adc conversion results are provided left- or right adjusted with optional ?1? or ?0? padding. this eases calculation when the result is represented as a signed integer (signed 16-bit number). porta has one adc. notation of this peripheral is adca. adc channel a register pin inputs pin inputs 1-64 x internal inputs channel a mux selection event trigger configuration reference selection
41 8135j?avr?12/10 xmega d4 24. ac - analog comparator 24.1 features ? two analog comparators ? selectable hysteresis ? no, small or large ? analog comparator output available on pin ? flexible input selection ? all pins on the port ? bandgap reference voltage. ? voltage scaler that can perform a 64-le vel scaling of the internal vcc voltage. ? interrupt and event generation on ? rising edge ? falling edge ?toggle ? window function interrupt and event generation on ? signal above window ? signal inside window ? signal below window 24.2 overview xmega d4 features two analog comparators (ac). an analog comparator compares two volt- ages, and the output indicates which input is largest. the analog comparator may be configured to give interrupt requests and/or events upon several different combinations of input change. hysteresis can be adjusted in order to find the optimal operation for each application. a wide range of input selection is available, both external pins and several internal signals can be used. the analog comparators are always grouped in pairs (ac0 and ac1) on each analog port. they have identical behavior but separate control registers. optionally, the state of the comparator is directly available on a pin. porta and has one ac pair. notations of this peripheral is aca.
42 8135j?avr?12/10 xmega d4 figure 24-1. analog comparator overview ac0 + - pin inputs internal inputs pin inputs internal inputs vcc scaled interrupt sensitivity control interrupts ac1 + - pin inputs internal inputs pin inputs internal inputs vcc scaled events pin 0 output
43 8135j?avr?12/10 xmega d4 24.3 input selection the analog comparators have a very flexible input selection and the two comparators grouped in a pair may be used to realize a window function. one pair of analog comparators is shown in figure 24-1 on page 42 . ? input selection from pin ? pin 0, 1, 2, 3, 4, 5, 6 selectable to positive input of analog comparator ? pin 0, 1, 3, 5, 7 selectable to negative input of analog comparator ? internal signals available on positive analog comparator inputs ? internal signals available on ne gative analog comparator inputs ? 64-level scaler of the vcc, available on negative analog comparator input ? bandgap voltage reference 24.4 window function the window function is realized by connecting the external inputs of the two analog comparators in a pair as shown in figure 24-2 . figure 24-2. analog comparator window function ac0 + - ac1 + - input signal upper limit of window lower limit of window interrupt sensitivity control interrupts events
44 8135j?avr?12/10 xmega d4 25. ocd - on-chip debug 25.1 features ? complete program flow control ? go, stop, reset, step into, step over, step out, run-to-cursor ? debugging on c and high-level language source code level ? debugging on assembler and disassembler level ? 1 dedicated program address or source level breakpoint for avr studio / debugger ? 4 hardware breakpoints ? unlimited number of user program breakpoints ? unlimited number of user data breakpoints, with break on: ? data location read, write or both read and write ? data location content equal or not equal to a value ? data location content is greater or less than a value ? data location content is within or outside a range ? bits of a data location are eq ual or not equal to a value ? non-intrusive operation ? no hardware or software resources in the device are used ? high speed operation ? no limitation on debug/programming clock frequency versus sys tem clock frequency 25.2 overview the xmega d4 has a powerful on-chip debug (ocd) system that - in combination with atmel?s development tools - provides all the necessary functions to debug an application. it has support for program and data breakpoints, and can debug an application from c and high level language source code level, as well as assembler and disassembler level. it has full non-intrusive opera- tion and no hardware or softw are resources in the device are used. the odc system is accessed through an external debugging tool which connects to the pdi physical interface. refer to ?pdi - program and debug interface? on page 45 .
45 8135j?avr?12/10 xmega d4 26. pdi - program and debug interface 26.1 features ? pdi - program and debug interface (atmel proprietary 2-pin interface) ? access to the ocd system ? programming of flash, eepr om, fuses and lock bits 26.2 overview the programming and debug facilitie s are accesse d through pdi physical interface. the pdi physical interface uses one dedicated pin together with the reset pin, and no general purpose pins are used. 26.3 pdi - program and debug interface the pdi is an atmel proprietary protocol for communication between the microcontroller and atmel?s development tools.
46 8135j?avr?12/10 xmega d4 27. pinout and pin functions the pinout of xmega d4 is shown in ?pinout/block diagram? on page 3 . in addition to general i/o functionality, each pin may have several functions. th is will depend on wh ich peripheral is enabled and connected to the actual pin. only one of the alternate pin functions can be used at time. 27.1 alternate pin f unctions description the tables below shows the notation for all pin functions available and describe their functions. 27.1.1 operation/power supply 27.1.2 port interrupt functions 27.1.3 analog functions 27.1.4 timer/counter and awex functions vcc digital supply voltage avcc analog supply voltage gnd ground sync port pin with full synchronous and limited asynchronous interrupt function async port pin with full syn chronous and full asynchro nous interrupt function acn analog comparator input pin n ac0out analog comparator 0 output adcn analog to digital converter input pin n aref analog reference input pin ocnx output compare channel x for timer/counter n ocnx inverted output compare channel x for timer/counter n ocnxls output compare channel x low side for timer/counter n ocnxhs output compare channel x high side for timer/counter n
47 8135j?avr?12/10 xmega d4 27.1.5 communication functions 27.1.6 oscillators, clock and event 27.1.7 debug/system functions scl serial clock for t w i sda serial data for t w i xckn transfer clock for usart n rxdn receiver data for usart n txdn transmitter data for usart n ss slave select for spi mosi master out slave in for spi miso master in slave out for spi sck serial clock for spi toscn timer oscillator pin n xtaln input/output for inverting oscillator pin n reset reset pin pdi_clk program and debug interface clock pin pdi_data program and debug interface data pin
48 8135j?avr?12/10 xmega d4 27.2 alternate pin functions the tables below shows the main and alternate pin functions for all pins on each port. it also shows which peripheral which make use of or enable the alternate pin function. table 27-1. port a - alternate functions porta pin # interrupt adca pos adca neg adca gainpos adca gainneg aca pos aca neg aca out ref gnd 38 avcc 39 pa0 40 sync adc0 adc0 adc0 ac0 ac0 aref pa1 41 sync adc1 adc1 adc1 ac1 ac1 pa2 42 sync/async adc2 adc2 adc2 ac2 pa3 43 sync adc3 adc3 adc3 ac3 ac3 pa4 44 sync adc4 adc4 adc4 ac4 pa5 1 sync adc5 adc5 adc5 ac5 ac5 pa6 2 sync adc6 adc6 adc6 ac6 pa7 3 sync adc7 adc7 adc7 ac7 ac0 out table 27-2. port b - alternate functions portb pin # interrupt adca pos ref pb0 4 sync adc8 aref pb1 5syncadc9 pb2 6 sync/async adc10 pb3 7syncadc11 table 27-3. port c - alternate functions portc pin # interrupt tcc0 awexc tcc1 usartc0 spi twic clockout eventout gnd 8 vcc 9 pc0 10 sync oc0a oc0als sda pc1 11 sync oc0b oc0ahs xck0 scl pc2 12 sync/async oc0c oc0bls rxd0 pc3 13 sync oc0d oc0bhs txd0 pc4 14 sync oc0cls oc1a ss pc5 15 sync oc0chs oc1b mosi pc6 16 sync oc0dls miso pc7 17 sync oc0dhs sck clkout evout
49 8135j?avr?12/10 xmega d4 table 27-4. port d - alternate functions portd pin # interrupt tcd0 usartd0 spid clockout eventout gnd 18 vcc 19 pd0 20 sync oc0a pd1 21 sync oc0b xck0 pd2 22 sync/async oc0c rxd0 pd3 23 sync oc0d txd0 pd4 24 sync ss pd5 25 sync mosi pd6 26 sync miso pd7 27 sync sck clkout evout table 27-5. port e - alternate functions port e pin # interrupt tce0 twie pe0 28 sync oc0a sda pe1 29 sync oc0b scl gnd 30 vcc 31 pe2 32 sync/async oc0c pe3 33 sync oc0d table 27-6. port r - alternate functions portr pin # xtal pdi tosc pdi 34 pdi_data reset 35 pdi_clk pr0 36 xtal2 tosc2 pr1 37 xtal1 tosc1
50 8135j?avr?12/10 xmega d4 28. peripheral modu le address map the address maps show the base address for each peripheral and module in xmega d4. for complete register description and summary for each peripheral module, refer to the xmega a manual. table 28-1. peripheral module address map base address name description 0x0000 gpio general purpose io registers 0x0010 vport0 virtual port 0 0x0014 vport1 virtual port 1 0x0018 vport2 virtual port 2 0x001c vport3 virtual port 2 0x0030 cpu cpu 0x0040 clk clock control 0x0048 sleep sleep controller 0x0050 osc oscillator control 0x0060 dfllrc32m dfll for the 32 mhz internal rc oscillator 0x0068 dfllrc2m dfll for the 2 mhz rc oscillator 0x0070 pr power reduction 0x0078 rst reset controller 0x0080 w dt w atch-dog timer 0x0090 mcu mcu control 0x00a0 pmic programmable multilevel interrupt controller 0x00b0 portcfg port configuration 0x0180 evsys event system 0x01c0 nvm non volatile memory (nvm) controller 0x0200 adca analog to digital converter on port a 0x0380 aca analog comparator pair on port a 0x0400 rtc real time counter 0x0480 t w ic two w ire interface on port c 0x04a0 t w ie two w ire interface on port e 0x0600 porta port a 0x0620 portb port b 0x0640 portc port c 0x0660 portd port d 0x0680 porte port e 0x07e0 portr port r 0x0800 tcc0 timer/counter 0 on port c 0x0840 tcc1 timer/counter 1 on port c 0x0880 a w exc advanced w aveform extension on port c 0x0890 hiresc high resolution extension on port c 0x08a0 usartc0 usart 0 on port c 0x08c0 spic serial peripheral interface on port c 0x08f8 ircom infrared communication module 0x0900 tcd0 timer/counter 0 on port d 0x09a0 usartd0 usart 0 on port d 0x09c0 spid serial peripheral interface on port d 0x0a00 tce0 timer/counter 0 on port e
51 8135j?avr?12/10 xmega d4 29. instruction set summary mnemonics operands description operation flags #clocks arithmetic and logic instructions add rd, rr add without carry rd rd + rr z,c,n,v,s,h 1 adc rd, rr add with carry rd rd + rr + c z,c,n,v,s,h 1 adi w rd, k add immediate to w ord rd rd + 1:rd + k z,c,n,v,s 2 sub rd, rr subtract without carry rd rd - rr z,c,n,v,s,h 1 subi rd, k subtract immediate rd rd - k z,c,n,v,s,h 1 sbc rd, rr subtract with carry rd rd - rr - c z,c,n,v,s,h 1 sbci rd, k subtract immediate with carry rd rd - k - c z,c,n,v,s,h 1 sbi w rd, k subtract immediate from w ord rd + 1:rd rd + 1:rd - k z,c,n,v,s 2 and rd, rr logical and rd rd ? rr z,n,v,s 1 andi rd, k logical and with immediate rd rd ? k z,n,v,s 1 or rd, rr logical or rd rd v rr z,n,v,s 1 ori rd, k logical or with immediate rd rd v k z,n,v,s 1 eor rd, rr exclusive or rd rd rr z,n,v,s 1 com rd one?s complement rd $ff - rd z,c,n,v,s 1 neg rd two?s complement rd $00 - rd z,c,n,v,s,h 1 sbr rd,k set bit(s) in register rd rd v k z,n,v,s 1 cbr rd,k clear bit(s) in register rd rd ? ($ffh - k) z,n,v,s 1 inc rd increment rd rd + 1 z,n,v,s 1 dec rd decrement rd rd - 1 z,n,v,s 1 tst rd test for zero or minus rd rd ? rd z,n,v,s 1 clr rd clear register rd rd rd z,n,v,s 1 ser rd set register rd $ff none 1 mul rd,rr multiply unsigned r1:r0 rd x rr (uu) z,c 2 muls rd,rr multiply signed r1:r0 rd x rr (ss) z,c 2 mulsu rd,rr multiply signed with unsigned r1:r0 rd x rr (su) z,c 2 fmul rd,rr fractional multiply unsigned r1:r0 rd x rr<<1 (uu) z,c 2 fmuls rd,rr fractional multiply signed r1:r0 rd x rr<<1 (ss) z,c 2 fmulsu rd,rr fractional multiply signed with unsigned r1:r0 rd x rr<<1 (su) z,c 2 branch instructions rjmp k relative jump pc pc + k + 1 none 2 ijmp indirect jump to (z) pc(15:0) pc(21:16) z, 0 none 2 eijmp extended indirect jump to (z) pc(15:0) pc(21:16) z, eind none 2 jmp k jump pc k none 3 rcall k relative call subroutine pc pc + k + 1 none 2 / 3 (1) icall indirect call to (z) pc(15:0) pc(21:16) z, 0 none 2 / 3 (1) eicall extended indirect call to (z) pc(15:0) pc(21:16) z, eind none 3 (1) call k call subroutine pc k none 3 / 4 (1)
52 8135j?avr?12/10 xmega d4 ret subroutine return pc stack none 4 / 5 (1) reti interrupt return pc stack i 4 / 5 (1) cpse rd,rr compare, skip if equal if (rd = rr) pc pc + 2 or 3 none 1 / 2 / 3 cp rd,rr compare rd - rr z,c,n,v,s,h 1 cpc rd,rr compare with carry rd - rr - c z,c,n,v,s,h 1 cpi rd,k compare with immediate rd - k z,c,n,v,s,h 1 sbrc rr, b skip if bit in register cleared if (rr(b) = 0) pc pc + 2 or 3 none 1 / 2 / 3 sbrs rr, b skip if bit in register set if (rr(b) = 1) pc pc + 2 or 3 none 1 / 2 / 3 sbic a, b skip if bit in i/o register cleared if (i/o(a,b) = 0) pc pc + 2 or 3 none 2 / 3 / 4 sbis a, b skip if bit in i/o register set if (i/o(a,b) =1) pc pc + 2 or 3 none 2 / 3 / 4 brbs s, k branch if status flag set if (sreg(s) = 1) then pc pc + k + 1 none 1 / 2 brbc s, k branch if status flag cleared if (sreg(s) = 0) then pc pc + k + 1 none 1 / 2 breq k branch if equal if (z = 1) then pc pc + k + 1 none 1 / 2 brne k branch if not equal if (z = 0) then pc pc + k + 1 none 1 / 2 brcs k branch if carry set if (c = 1) then pc pc + k + 1 none 1 / 2 brcc k branch if carry cleared if (c = 0) then pc pc + k + 1 none 1 / 2 brsh k branch if same or higher if (c = 0) then pc pc + k + 1 none 1 / 2 brlo k branch if lower if (c = 1) then pc pc + k + 1 none 1 / 2 brmi k branch if minus if (n = 1) then pc pc + k + 1 none 1 / 2 brpl k branch if plus if (n = 0) then pc pc + k + 1 none 1 / 2 brge k branch if greater or equal, signed if (n v= 0) then pc pc + k + 1 none 1 / 2 brlt k branch if less than, signed if (n v= 1) then pc pc + k + 1 none 1 / 2 brhs k branch if half carry flag set if (h = 1) then pc pc + k + 1 none 1 / 2 brhc k branch if half carry flag cleared if (h = 0) then pc pc + k + 1 none 1 / 2 brts k branch if t flag set if (t = 1) then pc pc + k + 1 none 1 / 2 brtc k branch if t flag cleared if (t = 0) then pc pc + k + 1 none 1 / 2 brvs k branch if overflow flag is set if (v = 1) then pc pc + k + 1 none 1 / 2 brvc k branch if overflow flag is cleared if (v = 0) then pc pc + k + 1 none 1 / 2 brie k branch if interrupt enabled if (i = 1) then pc pc + k + 1 none 1 / 2 brid k branch if interrupt disabled if (i = 0) then pc pc + k + 1 none 1 / 2 data transfer instructions mov rd, rr copy register rd rr none 1 mov w rd, rr copy register pair rd+1:rd rr+1:rr none 1 ldi rd, k load immediate rd k none 1 lds rd, k load direct from data space rd (k) none 2 (1)(2) ld rd, x load indirect rd (x) none 1 (1)(2) ld rd, x+ load indirect and post-increment rd x (x) x + 1 none 1 (1)(2) ld rd, -x load indirect and pre-decrement x x - 1, rd (x) x - 1 (x) none 2 (1)(2) ld rd, y load indirect rd (y) (y) none 1 (1)(2) ld rd, y+ load indirect and post-increment rd y (y) y + 1 none 1 (1)(2) mnemonics operands description operation flags #clocks
53 8135j?avr?12/10 xmega d4 ld rd, -y load indirect and pre-decrement y rd y - 1 (y) none 2 (1)(2) ldd rd, y+q load indirect with displacement rd (y + q) none 2 (1)(2) ld rd, z load indirect rd (z) none 1 (1)(2) ld rd, z+ load indirect and post-increment rd z (z), z+1 none 1 (1)(2) ld rd, -z load indirect and pre-decrement z rd z - 1, (z) none 2 (1)(2) ldd rd, z+q load indirect with displacement rd (z + q) none 2 (1)(2) sts k, rr store direct to data space (k) rd none 2 (1) st x, rr store indirect (x) rr none 1 (1) st x+, rr store indirect and post-increment (x) x rr, x + 1 none 1 (1) st -x, rr store indirect and pre-decrement x (x) x - 1, rr none 2 (1) st y, rr store indirect (y) rr none 1 (1) st y+, rr store indirect and post-increment (y) y rr, y + 1 none 1 (1) st -y, rr store indirect and pre-decrement y (y) y - 1, rr none 2 (1) std y+q, rr store indirect with displacement (y + q) rr none 2 (1) st z, rr store indirect (z) rr none 1 (1) st z+, rr store indirect and post-increment (z) z rr z + 1 none 1 (1) st -z, rr store indirect and pre-decrement z z - 1 none 2 (1) std z+q,rr store indirect with displacement (z + q) rr none 2 (1) lpm load program memory r0 (z) none 3 lpm rd, z load program memory rd (z) none 3 lpm rd, z+ load program memory and post-increment rd z (z), z + 1 none 3 elpm extended load program memory r0 (rampz:z) none 3 elpm rd, z extended load program memory rd (rampz:z) none 3 elpm rd, z+ extended load program memory and post- increment rd z (rampz:z), z + 1 none 3 spm store program memory (rampz:z) r1:r0 none - spm z+ store program memory and post-increment by 2 (rampz:z) z r1:r0, z + 2 none - in rd, a in from i/o location rd i/o(a) none 1 out a, rr out to i/o location i/o(a) rr none 1 push rr push register on stack stack rr none 1 (1) pop rd pop register from stack rd stack none 2 (1) bit and bit-test instructions lsl rd logical shift left rd(n+1) rd(0) c rd(n), 0, rd(7) z,c,n,v,h 1 lsr rd logical shift right rd(n) rd(7) c rd(n+1), 0, rd(0) z,c,n,v 1 mnemonics operands description operation flags #clocks
54 8135j?avr?12/10 xmega d4 notes: 1. cycle times for data memo ry accesses assume internal memo ry accesses, and are not valid for accesses via the external ram interface. 2. one extra cycle must be added when accessing internal sram. rol rd rotate left through carry rd(0) rd(n+1) c c, rd(n), rd(7) z,c,n,v,h 1 ror rd rotate right through carry rd(7) rd(n) c c, rd(n+1), rd(0) z,c,n,v 1 asr rd arithmetic shift right rd(n) rd(n+1), n=0..6 z,c,n,v 1 s w ap rd swap nibbles rd(3..0) ? rd(7..4) none 1 bset s flag set sreg(s) 1sreg(s)1 bclr s flag clear sreg(s) 0sreg(s)1 sbi a, b set bit in i/o register i/o(a, b) 1 none 1 cbi a, b clear bit in i/o register i/o(a, b) 0 none 1 bst rr, b bit store from register to t t rr(b) t 1 bld rd, b bit load from t to register rd(b) t none 1 sec set carry c 1c1 clc clear carry c 0c1 sen set negative flag n 1n1 cln clear negative flag n 0n1 sez set zero flag z 1z1 clz clear zero flag z 0z1 sei global interrupt enable i 1i1 cli global interrupt disable i 0i1 ses set signed test flag s 1s1 cls clear signed test flag s 0s1 sev set two?s complement overflow v 1v1 clv clear two?s complement overflow v 0v1 set set t in sreg t 1t1 clt clear t in sreg t 0t1 seh set half carry flag in sreg h 1h1 clh clear half carry flag in sreg h 0h1 mcu control instructions break break (see specific descr. for break) none 1 nop no operation none 1 sleep sleep (see specific descr. for sleep) none 1 w dr w atchdog reset (see specific descr. for w dr) none 1 mnemonics operands description operation flags #clocks
55 8135j?avr?12/10 xmega d4 30. packaging information 30.1 44a 2325 orchard parkway san jose, ca 95131 title drawing no. r rev. 44a, 44-lead, 10 x 10 mm body size, 1.0 mm body thickness, 0.8 mm lead pitch, thin profile plastic quad flat package (tqfp) c 44a 2010-10-20 pin 1 identifier 0~7 pin 1 l c a1 a2 a d1 d e e1 e b common dimen s ion s (unit of measure = mm) s ymbol min nom max note notes: 1. this package conforms to jedec reference ms-026, variation acb. 2. dimensions d1 and e1 do not include mold protrusion. allowable protrusion is 0.25 mm per side. dimensions d1 and e1 are maximum plastic body size dimensions including mold mismatch. 3. lead coplanarity is 0.10 mm maximum. a ? ? 1.20 a1 0.05 ? 0.15 a2 0.95 1.00 1.05 d 11.75 12.00 12.25 d1 9.90 10.00 10.10 note 2 e 11.75 12.00 12.25 e1 9.90 10.00 10.10 note 2 b 0.30 ? 0.45 c 0.09 ? 0.20 l 0.45 ? 0.75 e 0.80 typ
56 8135j?avr?12/10 xmega d4 30.2 44m1 title drawing no. gpc rev. packa g e drawin g contact: packagedrawings@atmel.com 44m1 zws h 44m1, 44-pad, 7 x 7 x 1.0 mm body, lead pitch 0.50 mm, 5.20 mm exposed pad, thermally enhanced plastic very thin quad flat no lead package (vqfn) 9/26/08 common dimen s ion s (unit of measure = mm) s ymbol min nom max note a 0.80 0.90 1.00 a1 ? 0.02 0.05 a3 0.20 ref b 0.18 0.23 0.30 d d2 5.00 5.20 5.40 6.90 7.00 7.10 6.90 7.00 7.10 e e2 5.00 5.20 5.40 e 0.50 bsc l 0.59 0.64 0.69 k 0.20 0.26 0.41 note: jedec standard mo-220, fig. 1 (saw singulation) vkkd-3. top view s ide view bottom view d e marked pin# 1 id e2 d2 b e pin #1 corner l a1 a3 a seating plane pin #1 triangle pin #1 chamfer (c 0.30) option a option b pin #1 notch (0.20 r) option c k k 1 2 3
57 8135j?avr?12/10 xmega d4 30.3 49c2 title drawing no. gpc rev. packa g e drawin g contact: packagedrawings@atmel.com 49c2 cbd a 49c2, 49-ball (7 x 7 array), 0.65 mm pitch, 5.0 x 5.0 x 1.0 mm, very thin, fine-pitch ball grid array package (vfbga) 3/14/08 common dimen s ion s (unit of measure = mm) s ymbol min nom max note a ? ? 1.00 a1 0.20 ? ? a2 0.65 ? ? d 4.90 5.00 5.10 d1 3.90 bsc e 4.90 5.00 5.10 e1 3.90 bsc b 0.30 0.35 0.40 e 0.65 bsc top view s ide view a1 ball id g f e d c b a 12 3 4 5 6 7 a a1 a2 d e 0.10 e1 d1 49 - ? 0.35 0.05 e a1 ball corner bottom view b e
58 8135j?avr?12/10 xmega d4 31. electrical characteristics all typical values are measured at t = 25 c unless other temperature condition is given. all min- imum and maximum values are valid across operating temperature and voltage unless other conditions are given. 31.1 absolute m aximum ratings* 31.2 dc characteristics operating temperature.................................. -55 c to +125 c *notice: stresses beyond those listed under ?absolute maximum ratings? may cause permanent dam- age to the device. this is a stress rating only and functional operation of the device at these or other conditions beyond those indicated in the operational sections of th is specification is not implied. exposure to absolute maximum rating conditions for extended periods may affect device reliability. storage temperature ..................................... -65 c to +150 c voltage on any pin with respect to ground..-0.5v to v cc +0.5v maximum operating voltage ............................................ 3.6v dc current per i/o pin ............................................... 20.0 ma dc current v cc and gnd pins................................ 200.0 ma table 31-1. current consumption symbol parameter condition min. typ. max. units i cc power supply current (1) active 32 khz, ext. clk v cc = 1.8v 30 a v cc = 3.0v 75 1 mhz, ext. clk v cc = 1.8v 260 v cc = 3.0v 570 2 mhz, ext. clk v cc = 1.8v 510 690 v cc = 3.0v 1.1 1.49 ma 32 mhz, ext. clk v cc = 3.0v 11.4 13 idle 32 khz, ext. clk v cc = 1.8v 2.8 a v cc = 3.0v 4.8 1 mhz, ext. clk v cc = 1.8v 80 v cc = 3.0v 150 2 mhz, ext. clk v cc = 1.8v 160 225 v cc = 3.0v 295 390 32 mhz, ext. clk v cc = 3.0v 4.8 6 ma power-down mode all functions disabled, t = 25c v cc = 3.0v 0.1 3 a all functions disabled, t = 85c v cc = 3.0v 1.5 5 ulp, w dt, sampled bod, t = 25c v cc = 1.8v 1.1 6 v cc = 3.0v 1.1 6 ulp, w dt, sampled bod, t=85c v cc = 3.0v 2.6 10
59 8135j?avr?12/10 xmega d4 notes: 1. all power reduction registers set. 2. all parameters measured as the difference in current co nsumption between module enabled and disabled. all data at v cc =3.0v, clk sys = 1 mhz external cloc k with no prescaling. i cc power-save mode rtc 1 khz from low power 32 khz tosc, t = 25c v cc = 1.8v 0.5 4 a v cc = 3.0v 0.6 4 rtc from low power 32 khz tosc v cc = 3.0v 1.16 reset current consumption without reset pull-up resistor current v cc = 3.0v 505 module current consumption (2) i cc rc32m 470 a rc32m w/dfll internal 32.768 khz oscillator as dfll source 600 rc2m 112 rc2m w/dfll internal 32.768 khz oscillator as dfll source 145 rc32k 30 pll multiplication factor = 10x 225 w atchdog normal mode 0.9 bod continuous mode 120 bod sampled mode 1 internal 1.00 v ref 80 temperature reference 80 rtc with int. 32 khz rc as source no prescaling 30 rtc with ulp as source no prescaling 0.9 ac 110 usart rx and tx enabled, 9600 baud 5.3 timer/counter prescaler div1 19 flash/eeprom programming vcc = 2v 13 25 ma vcc = 3v 18 table 31-1. current consumption (continued) symbol parameter condition min. typ. max. units
60 8135j?avr?12/10 xmega d4 31.3 speed the maximum cpu clock frequency of the xmega d4 devices is depending on v cc . as shown in figure 31-1 on page 60 the frequency vs. v cc curve is linear between 1.8v < v cc <2.7v. figure 31-1. operating frequency vs.vcc table 31-2. operating voltage and frequency symbol parameter condition min typ max units clk cpu cpu clock frequency v cc = 1.6v 0 12 mhz v cc = 1.8v 0 12 v cc = 2.7v 0 32 v cc = 3.6v 0 32 1.8 12 32 mhz v 2.7 3.6 1.6 safe operating area
61 8135j?avr?12/10 xmega d4 31.4 flash and eeprom memory characteristics notes: 1. programming is timed from the internal 2 mhz oscillator. 2. eeprom is not erased if the eesave fuse is programmed. table 31-3. endurance and data retention symbol parameter condi tion min typ max units flash w rite/erase cycles 25c 10k cycle 85c 10k data retention 25c 100 year 55c 25 eeprom w rite/erase cycles 25c 80k cycle 85c 30k data retention 25c 100 year 55c 25 table 31-4. programming time symbol parameter condition min typ (1) max units chip erase flash, eeprom (2) and sram erase 40 ms flash page erase 6 page w rite 6 page w riteautomatic page erase and w rite 12 eeprom page erase 6 page w rite 6 page w riteautomatic page erase and w rite 12
62 8135j?avr?12/10 xmega d4 31.5 adc characteristics note: 1. refer to ?bandgap characteristics? on page 63 for more parameter details. table 31-5. adc characteristics symbol parameter condi tion min typ max units res resolution programmable: 8/12 8 12 12 bits inl integral non-linearity differential mode,100 ksps -5 2 5 lsb dnl differential non-linearity differential mode,100 ksps < 1 gain error < 10 mv offset error < 2 adc clk adc clock frequency max is 1/4 of peripheral clock 1400 khz conversion rate 200 ksps conversion time (propagation delay) (res+2)/2+gain res = 8 or 12, gain = 0, 1, 2 or 3 5710 adc clk cycles sampling time 1/2 adc clk cycle 0.36 us conversion range 0 vref v avcc analog supply voltage v cc -0.3 v cc +0.3 vref reference voltage 1.0 v cc -0.6v input bandwidth khz int1v internal 1.00v reference (1) 1.00 v intvcc internal v cc /1.6 v cc /1.6 scaledvcc scaled internal v cc /10 input v cc /10 r aref reference input resistance > 10 m start-up time 12 24 adc clk cycles internal input sampling speed temp. sensor, v cc /10, bandgap 100 ksps table 31-6. adc gain stage characteristics symbol parameter condition min typ max units gain error 1 to 64 gain < 1 % offset error < 1 mv vrms noise level at input 64x gain vref = int. 1v 0.12 vref = ext. 2v 0.06 clock rate same as adc 200 khz
63 8135j?avr?12/10 xmega d4 31.6 analog comparator characteristics 31.7 bandgap characteristics 31.8 brownout detection characteristics note: 1. bod is calibrated at 85 c within the bod level 0 values. bod level 0 is the default level. table 31-7. analog comparator characteristics symbol parameter condition min typ max units v off input offset voltage v cc = 1.6 - 3.6v < 10 mv i lk input leakage current v cc = 1.6 - 3.6v < 1000 pa v hys1 hysteresis, no v cc = 1.6 - 3.6v 0 mv v hys2 hysteresis, small v cc = 1.6 - 3.6v 20 v hys3 hysteresis, large v cc = 1.6 - 3.6v 40 t delay propagation delay v cc = 1.6 - 3.6v 175 ns table 31-8. bandgap voltage characteristics symbol parameter condition min typ max units bandgap startup time as reference for adc 1 clk_per + 2.5s s as input to ac or adc 1.5 bandgap voltage 1.1 v int1v internal 1.00v reference t= 85c, after calibration 0.99 1 1.01 variation over voltage and temperature v cc = 1.6 - 3.6v, t a = -40 c to 85 c2 % table 31-9. brownout detection characteristics (1) symbol parameter condition min typ max units bod level 0 falling vcc t= 85c 1.62 1.63 1.70 v bod level 1 falling vcc 1.9 bod level 2 falling vcc 2.17 bod level 3 falling vcc 2.43 bod level 4 falling vcc 2.68 bod level 5 falling vcc 2.96 bod level 6 falling vcc 3.22 bod level 7 falling vcc 3.49 hysteresis bod level 0, t= 85c 1 3 %
64 8135j?avr?12/10 xmega d4 31.9 pad characteristics 31.10 por characteristics 31.11 reset characteristics table 31-10. pad characteristics symbol parameter condition min typ max units v ih input high voltage v cc = 2.4 - 3.6v 0.7*v cc v cc +0.5 v v cc = 1.6 - 2.4v 0.8*v cc v cc +0.5 v il input low voltage v cc = 2.4 - 3.6v -0.5 0.3*v cc v cc = 1.6 - 2.4v -0.5 0.2*v cc v ol output low voltage gpio i oh = 8 ma, v cc = 3.3v 0.4 0.76 i oh = 5 ma, v cc = 3.0v 0.3 0.64 i oh = 3 ma, v cc = 1.8v 0.2 0.46 v oh output high voltage gpio i oh = -4 ma, v cc = 3.3v 2.6 3.0 i oh = -3 ma, v cc = 3.0v 2.1 2.7 i oh = -1 ma, v cc = 1.8v 1.4 1.6 i il input leakage current i/o pin <0.001 1 a i ih input leakage current i/o pin <0.001 1 r p i/o pin pull/buss keeper resistor t= -40c to 85c 20 k r rst reset pin pull-up resistor t= -40c to 85c 20 input hysteresis v cc = 1.6 v - 3.6 v, t= -40c to 85c 0.5 v table 31-11. power-on reset characteristics symbol parameter condition min typ max units v pot- por threshold voltage falling v cc v cc falls faster than 1v/ms 0.4 0.8 v v cc falls at 1v/ms or slower 0.8 1.3 v pot+ por threshold voltage rising v cc 1.3 1.59 table 31-12. reset characteristics symbol parameter condition min typ max units minimum reset pulse width 90 1000 ns reset threshold voltage v cc = 2.7 - 3.6v 0.45*v cc v v cc = 1.6 - 2.7v 0.42*v cc
65 8135j?avr?12/10 xmega d4 31.12 oscillator characteristics note: 1. see figure 31-2 on page 66 for definition table 31-13. internal 32.768 khz os cillator characteristics symbol parameter condition min typ max units accuracy t = 85 c, v cc = 3v, after production calibration -0.5 0.5 % table 31-14. internal 2 mhz oscilla tor characteristics symbol parameter condition min typ max units accuracy t = 85 c, v cc = 3v, after production calibration -1.5 1.5 % dfll calibration step size t = 25 c, v cc = 3v 0.15 table 31-15. internal 32 mhz oscillator characteristics symbol parameter condition min typ max units accuracy t = 85 c, v cc = 3v, after production calibration -1.5 1.5 % dfll calibration stepsize t = 25 c, v cc = 3v 0.2 table 31-16. internal 32 khz, ulp o scillator characteristics symbol parameter condition min typ max units output frequency 32 khz ulp osc t = 85 c, v cc = 3.0v 26 khz table 31-17. external 32.768khz crystal osc illator and tosc characteristics symbol parameter condi tion min typ max units sf safety factor capacitive load matched to crystal specification 3 esr/r 1 recommended crystal equivalent series resistance (esr) crystal load capacitance 6.5pf 60 k crystal load capacitance 9.0pf 35 c in_tosc input capacitance between tosc pins normal mode 4.7 pf low power mode 5.2
66 8135j?avr?12/10 xmega d4 figure 31-2. tosc input capacitance the input capacitance between the tosc pins is cl1 + cl2 in series as seen from the crystal when oscillating without external capacitors. notes: 1. non-prescaled system clock source. 2. time from pin change on external interrupt pin to first available clock cycle. additi onal interrupt respon se time is minimum 5 system clock source cycles. c l1 c l2 tosc1 tosc2 device internal external 32.768 khz crystal table 31-18. device wake-up time from sleep symbol parameter condition (1) min typ (2) max units idle sleep, standby and extended standby sleep mode int. 32.768 khz rc 130 s int. 2 mhz rc 2 ext. 2 mhz clock 2 int. 32 mhz rc 0.17 power-save and power-down sleep mode int. 32.768 khz rc 320 int. 2 mhz rc 10.3 ext. 2 mhz clock 4.5 int. 32 mhz rc 5.8
67 8135j?avr?12/10 xmega d4 32. typical characteristics 32.1 active supply current figure 32-1. active supply current vs. frequency f sys = 0 - 1.0 mhz external clock, t = 25c. figure 32-2. active supply current vs. frequency f sys = 1 - 32 mhz external clock, t = 25c. 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 100 200 300 400 500 600 700 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0. 8 0.9 1 fre qu ency [mhz] i cc [ u a] 3.3 v 3.0 v 2.7 v 0 2 4 6 8 10 12 14 04 8 12 16 20 24 2 8 32 fre qu ency [mhz] i cc [ma] 2.2 v 1. 8 v
68 8135j?avr?12/10 xmega d4 figure 32-3. active supply current vs. vcc f sys = 1.0 mhz external clock. figure 32-4. active supply current vs. vcc f sys = 32.768 khz internal rc. 8 5 c 25 c -40 c 0 100 200 300 400 500 600 700 8 00 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 160 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a]
69 8135j?avr?12/10 xmega d4 figure 32-5. active supply current vs. vcc f sys = 2.0 mhz internal rc. figure 32-6. active supply current vs. vcc f sys = 32 mhz internal rc prescaled to 8 mhz. 8 5 c 25 c -40 c 0 200 400 600 8 00 1000 1200 1400 1600 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 1 2 3 4 5 6 7 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ma]
70 8135j?avr?12/10 xmega d4 figure 32-7. active supply current vs. vcc f sys = 32 mhz internal rc. 32.2 idle supply current figure 32-8. idle supply current vs. frequency f sys = 0 - 1.0 mhz, t = 25c. 8 5 c 25 c -40 c 0 2 4 6 8 10 12 14 16 2.7 2. 8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 v cc [ v ] i cc [ma] 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 20 40 60 8 0 100 120 140 160 1 8 0 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0. 8 0.9 1 fre qu ency [mhz] i cc [ u a]
71 8135j?avr?12/10 xmega d4 figure 32-9. idle supply current vs. frequency f sys = 1 - 32 mhz, t = 25c. figure 32-10. idle supply current vs. vcc f sys = 1.0 mhz external clock. 3.3 v 3.0 v 2.7 v 0 1 2 3 4 5 6 04 8 12 16 20 24 2 8 32 fre qu ency [mhz] i cc [ma] 2.2 v 1. 8 v 8 5 c 25 c -40 c 0 40 8 0 120 160 200 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a]
72 8135j?avr?12/10 xmega d4 figure 32-11. idle supply current vs. vcc f sys = 32.768 khz internal rc. figure 32-12. : idle supply current vs. vcc f sys = 2.0 mhz internal rc. 8 5 c 25 c -40 c 0 5 10 15 20 25 30 35 40 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 100 200 300 400 500 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a]
73 8135j?avr?12/10 xmega d4 figure 32-13. idle supply current vs. vcc f sys = 32 mhz internal rc prescaled to 8 mhz. figure 32-14. : idle supply current vs. vcc f sys = 32 mhz internal rc. 8 5 c 25 c -40 c 0 500 1000 1500 2000 2500 3000 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 0 1 2 3 4 5 6 7 2.7 2. 8 2.9 3 3.1 3.2 3.3 3.4 3.5 3.6 v cc [ v ] i cc [ma]
74 8135j?avr?12/10 xmega d4 32.3 power-down supply current figure 32-15. power-down supply current vs. temperature figure 32-16. power-down supply current vs. temperature with wdt and sampled bod enabled. 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] i cc [ u a] 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] i cc [ u a]
75 8135j?avr?12/10 xmega d4 32.4 power-save supply current figure 32-17. power-save supply current vs. temperature with wdt, sampled bod and rtc from ulp enabled. 32.5 pin pull-up figure 32-18. reset pull-up resistor current vs. reset pin voltage v cc = 1.8v. 3.3 v 3.0 v 2.7 v 2.2 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] i cc [ u a] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 v reset [ v ] i reset [ u a]
76 8135j?avr?12/10 xmega d4 figure 32-19. reset pull-up resistor current vs. reset pin voltage v cc = 3.0v. figure 32-20. reset pull-up resistor current vs. reset pin voltage v cc = 3.3v. 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 160 0 0.5 1 1.5 2 2.5 3 v reset [ v ] i reset [ u a] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 160 1 8 0 0 0.5 1 1.5 2 2.5 3 v reset [ v ] i reset [ u a]
77 8135j?avr?12/10 xmega d4 32.6 pin output voltage vs. sink/source current figure 32-21. i/o pin output voltage vs. source current vcc = 1.8v. figure 32-22. i/o pin output voltage vs. source current vcc = 3.0v. 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 2 i pi n [ma] v pi n [ v ] -6 -5 -4 -3 -2 -1 0 8 5 c 25 c -40 c 0 0.5 1 1.5 2 2.5 3 3.5 i pi n [ma] v pi n [ v ] -10 -9 - 8 -7 -6 -5 -4 -3 -2 -1 0
78 8135j?avr?12/10 xmega d4 figure 32-23. i/o pin output voltage vs. source current vcc = 3.3v. figure 32-24. i/o pin output voltage vs. sink current vcc = 1.8v. 8 5 c 25 c -40 c 0 0.5 1 1.5 2 2.5 3 3.5 i pi n [ma] v pi n [ v ] -10 -9 - 8 -7 -6 -5 -4 -3 -2 -1 0 -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 i pi n [ma] v pi n [ v ] 25c 8 5c 0 1 2 3 4 5 6 7 8 9 10
79 8135j?avr?12/10 xmega d4 figure 32-25. i/o pin output voltage vs. sink current vcc = 3.0v. figure 32-26. i/o pin output voltage vs. sink current vcc = 3.3v. 8 5 c 25 c -40 c 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 i pi n [ma] v pi n [ v ] 0 1 2 3 4 5 6 7 8 9 10 8 5 c 25 c -40 c 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 i pi n [ma] v pi n [ v ] 0 1 2 3 4 5 6 7 8 9 10
80 8135j?avr?12/10 xmega d4 32.7 pin thresholds and hysteresis figure 32-27. i/o pin input threshold voltage vs. v cc v ih - i/o pin read as ?1?. figure 32-28. i/o pin input threshold voltage vs. v cc v il - i/o pin read as ?0?. 8 5 c 25 c -40 c 0 0.5 1 1.5 2 2.5 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ] 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ]
81 8135j?avr?12/10 xmega d4 figure 32-29. i/o pin input hysteresis vs. v cc. figure 32-30. reset input threshold voltage vs. v cc v ih - i/o pin read as ?1?. 8 5 c 25 c -40 c 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ] 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ]
82 8135j?avr?12/10 xmega d4 figure 32-31. reset input threshold voltage vs. v cc v il - i/o pin read as ?0?. 32.8 bod thresholds figure 32-32. bod thresholds vs. temperature bod level = 1.6v. 8 5 c 25 c -40 c 0 0.2 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v threshold [ v ] rising v cc falling v cc 1.615 1.62 1.625 1.63 1.635 1.64 1.645 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] v bot [ v ]
83 8135j?avr?12/10 xmega d4 figure 32-33. bod thresholds vs. temperature bod level = 2.9v. 32.9 analog comparator figure 32-34. analog comparator hysteresis vs. v cc high-speed, small hysteresis. rising v cc falling v cc 2.93 2.94 2.95 2.96 2.97 2.9 8 2.99 3 3.01 3.02 3.03 -40 -30 -20 -10 0 10 20 30 40 50 60 70 8 090 temperat u re [c] v bot [ v ] 8 5 c 25 c -40 c 0 4 8 12 16 20 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v hyst [m v ]
84 8135j?avr?12/10 xmega d4 figure 32-35. analog comparator hysteresis vs. v cc high-speed, large hysteresis. figure 32-36. analog comparator propagation delay vs. v cc high-speed. 8 5 c 25 c -40 c 0 10 20 30 40 50 60 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] v hyst [m v ] 8 5 c 25 c -40 c 0 1 8 36 54 72 90 10 8 126 144 162 1 8 0 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] t pd [ns]
85 8135j?avr?12/10 xmega d4 32.10 oscillators and wake-up time 32.10.1 internal 32.768 khz oscillator figure 32-37. internal 32.768 khz osc illator calibration step size t = -40 to 85 c, v cc = 3v. 32.10.2 internal 2 mhz oscillator figure 32-38. internal 2 mhz oscillator cala calibration step size t = -40 to 85 c, v cc = 3v. 032649612 8 160 192 224 256 rc32kcal[7..0] 0.05 % 0.20 % 0.35 % 0.50 % 0.65 % 0. 8 0 % step size: f [khz] -0.30 % -0.20 % -0.10 % 0.00 % 0.10 % 0.20 % 0.30 % 0.40 % 0.50 % 016324 8 64 8 09611212 8 dfllrc2mcala step size: f [mhz]
86 8135j?avr?12/10 xmega d4 figure 32-39. internal 2 mhz oscillator calb calibration step size t = -40 to 85 c, v cc = 3v. 32.10.3 internal 32 mhz oscillator figure 32-40. internal 32 mhz oscillator cala calibration step size t = -40 to 85 c, v cc = 3v . 0.00 % 0.50 % 1.00 % 1.50 % 2.00 % 2.50 % 3.00 % 0 8 16 24 32 40 4 8 56 64 dfllrc2mcalb step size: f [mhz] -0.20 % -0.10 % 0.00 % 0.10 % 0.20 % 0.30 % 0.40 % 0.50 % 0.60 % 016324 8 64 8 09611212 8 dfllrc32mcala step size: f [mhz]
87 8135j?avr?12/10 xmega d4 figure 32-41. internal 32 mhz oscillator calb calibration step size t = -40 to 85 c, v cc = 3v. 32.11 module current consumption figure 32-42. ac current consumption vs. vcc low-power mode. 0.00 % 0.50 % 1.00 % 1.50 % 2.00 % 2.50 % 3.00 % 0 8 16 24 32 40 4 8 56 64 dfllrc32mcalb step size: f [mhz] 8 5 c 25 c -40 c 0 20 40 60 8 0 100 120 140 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] mod u le c u rrent cons u mption [ u a]
88 8135j?avr?12/10 xmega d4 figure 32-43. power-up current consumption vs. vcc 32.12 reset pulsewidth figure 32-44. minimum reset pulse w idth vs. vcc 0 100 200 300 400 500 600 0.4 0.6 0. 8 1 1.2 1.4 1.6 1. 8 v cc [ v ] i cc [ u a] 8 5 c 25 c -40 c 8 5 c 25 c -40 c 0 20 40 60 8 0 100 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] t rst [ns]
89 8135j?avr?12/10 xmega d4 32.13 pdi speed figure 32-45. pdi speed vs. vcc 25 c 0 5 10 15 20 25 30 35 1.6 1. 8 2 2.2 2.4 2.6 2. 8 3 3.2 3.4 3.6 v cc [ v ] f max [mhz]
90 8135j?avr?12/10 xmega d4 33. errata 33.1 atxmega16d4, ATXMEGA32D4 33.1.1 rev. a/b ? bandgap voltage input for the acs can not be ch anged when used for both acs simultaneously ? vcc voltage scaler for ac is non-linear ? adc gain stage cannot be used for single conversion ? adc has increased inl error for some operating conditions ? adc gain stage output range is limited to 2.4 v ? adc event on compare match non-functional ? adc propagation delay is not correct when 8x -64x gain is used ? bandgap measurement with the adc is no n-functional when vcc is below 2.7v ? accuracy lost on first th ree samples after switching input to adc gain stage ? configuration of pgm and cwcm not as described in xmega a manual ? pwm is not restarted properly afte r a fault in cycle-by-cycle mode ? bod: bod will be enabled at any reset ? sampled bod in active mode will cause no ise when bandgap is used as reference ? eeprom page buffer always written when nvm data0 is written ? pending full asynchronous pin change interrupts will not wake the device ? pin configuration does not aff ect analog comparator output ? nmi flag for crystal oscillator failure automatically cleared ? flash power reduction mode can no t be enabled when entering sleep ? crystal start-up time required after powe r-save even if crystal is source for rtc ? rtc counter value not correctly read after sleep ? pending asynchronous rtc-interrupts will not wake up device ? twi transmit collision flag no t cleared on repeated start ? clearing twi stop interrupt flag may lock the bus ? twi start condition at bus timeout will cause transaction to be dropped ? twi data interrupt flag (dif) erroneously read as set ? wdr instruction inside closed window will not issue reset ? twie is not available ? inverted i/o enable does not af fect analog comparator output 1. bandgap voltage input for the acs cannot be changed when used for both acs simultaneously if the bandgap voltage is selected as input for one analog comparator (ac) and then selected/deselected as input for another ac, the first comparator will be affected for up to 1 s and could potentially give a wrong comparison result. problem fix/workaround if the bandgap is required for both acs simultaneously, configure the input selection for both acs before enabling any of them. 2. vcc voltage scaler for ac is non-linear the 6-bit vcc voltage scaler in the analog comparators is non-linear.
91 8135j?avr?12/10 xmega d4 figure 33-1. analog comparator voltage scaler vs. scalefac t = 25c problem fix/workaround use external voltage input for the analog comparator if accurate voltage levels are needed 3. adc gain stage cannot be used for single conversion the adc gain stage will no t output correct result for singl e conversion that is triggered and started from software or event system. problem fix/workaround w hen the gain stage is used, the adc must be set in free running mode for correct results. 4. adc has increased inl error for some operating conditions some adc configurations or operating co ndition will result in increased inl error. in signed mode inl is increased to: ? 6lsb for sample rates above 130ksps, and up to 8lsb for 200ksps sample rate. ? 6lsb for reference voltage below 1.1v when vcc is above 3.0v. ? 20lsb for ambient temperature below 0 degree c and reference voltage below 1.3v. in unsigned mode, the inl error cannot be guaranteed, and this mode should not be used. problem fix/workaround none, avoid using the adc in the above configurations in order to prevent increased inl error. use the adc in signed mode also for single ended measurements. 5. adc gain stage output range is limited to 2.4 v the amplified out put of the adc gain stage will never go above 2.4 v, hence the differential input will only give corr ect output when below 2.4 v/gain. for the ava ilable gain settings, this gives a differential input range of: 3.3 v 2.7 v 1. 8 v 0 0.5 1 1.5 2 2.5 3 3.5 0 5 10 15 20 25 30 35 40 45 50 55 60 65 scalefac v scale [ v ]
92 8135j?avr?12/10 xmega d4 problem fix/workaround keep the amplified voltage output from the adc gain stage below 2.4 v in order to get a cor- rect result, or keep adc voltage reference below 2.4 v. 6. adc event on compare match non-functional adc signalling event will be given at every conversion complete even if interr upt mode (int- mode) is set to belo w or above. problem fix/workaround enable and use interrupt on compare match when using the compare function. 7. adc propagation delay is not correct when 8x -64x gain is used the propagation dela y will increase by only one adc cloc k cycle for 8x and 16x gain setting, and 32x and 64x gain settings. problem fix/workaround none 8. bandgap measurement with the adc is non-functional when vcc is below 2.7v the adc can not be used to do bandgap measurements when vcc is below 2.7v. problem fix/workaround none. 9. accuracy lost on first three samples after switching input to adc gain stage due to memory effect in the adc gain stage, the first three samples after changing input channel must be disregarded to achieve 12-bit accuracy. problem fix/workaround run three adc conversions and discard these results after changing input channels to adc gain stage. 10. configuration of pgm and cwcm not as described in xmega a manual enabling common w aveform channel mode will enable pattern generation mode (pgm), but not common w aveform channel mode. enabling pattern generation mode (pgm) and not common w aveform channel mode (c w cm) will enable both pattern ge neration mode and common w aveform channel mode. ? 1x gain: 2.4 v ? 2x gain: 1.2 v ? 4x gain: 0.6 v ? 8x gain: 300 mv ? 16x gain: 150 mv ? 32x gain: 75 mv ? 64x gain: 38 mv
93 8135j?avr?12/10 xmega d4 problem fix/workaround 11. pwm is not restarted properly after a fault in cycle-by-cycle mode w hen the a w ex fault restore mode is set to cycle- by-cycle, the waveform output will not return to normal operation at first update after fault condition is no longer present. problem fix/workaround do a write to any a w ex i/o register to re-enable the output. 12. bod will be enabled after any reset if any reset source go es active, the bod will be enabled and keep the device in reset if the vcc voltage is below the prog rammed bod level. during powe r-on reset, reset will not be released until vcc is above the programmed bod level even if the bod is disabled. problem fix/workaround do not set the bod level higher than vcc even if the bod is not used. 13. sampled bod in active mode will cause noise when bandgap is used as reference using the bod in sample d mode when the device is runnin g in active or idle mode will add noise on the bandgap reference for adc, dac and analog comparator. problem fix/workaround if the bandgap is used as reference for either the adc, dac or the analog comparator, the bod must not be set in sampled mode. 14. eeprom page buffer always written when nvm data0 is written if the eeprom is memory mapp ed, writing to nvm data0 will corrupt data in the eeprom page buffer. problem fix/workaround before writing to nvm data0, for exampl e when doing software crc or flash page buffer write, check if eeprom page buff er active loading flag (eeloa d) is set. do not write nvm data0 when eeload is set. 15. pending full asynchronous pin change interrupts will not wake the device any full asynchronous pin-change interrupt from pin 2, on any port, that is pending when the sleep instruction is executed, will be ignor ed until the device is woken from another source or the source triggers again. this applies w hen entering all sleep modes where the system clock is stopped. problem fix/workaround none. 16. pin configuration does not affect analog comparator output the output/pull and inverted pin configuration does not affect the analog comparator output. table 33-1. configure p w m and c w cm according to this table: pgm cwcm description 0 0 pgm and c w cm disabled 0 1 pgm enabled 1 0 pgm and c w cm enabled 1 1 pgm enabled
94 8135j?avr?12/10 xmega d4 problem fix/workaround none for output/pull configuration. for inverted i/o, configure the analog comparator to give an inverted result (i.e. connect positive input to the negative ac input and vice versa), or use and external inverter to change polarity of analog comparator output. 17. nmi flag for crystal oscillator failure automatically cleared nmi flag for crystal oscillator failure (xoscf dif) will be automatically cleared when exe- cuting the nmi interrupt handler. problem fix/workaround this device revision has only one nmi interrupt source, so checking the interrupt source in software is not required. 18. flash power reduction mode can not be enabled when entering sleep if flash power reduction mode is enabled when entering power-save or extended standby sleep mode, the device will only wake up on every fourth wake -up request. if flash power reduction mode is enabled wh en entering idle sleep mode, th e wake-up time will vary with up to 16 cpu clock cycles. problem fix/workaround disable flash power reduction mode before entering sleep mode. 19. crystal start-up time required after power-save even if crystal is source for rtc even if 32.768 khz crystal is used for rtc duri ng sleep, the clock fr om the crystal will not be ready for the system before th e specified start-up time. see "xoscsel[3:0]: crystal oscilla- tor selection" in xmega a manual. if bod is us ed in active mode, the bod will be on during this period (0.5s). problem fix/workaround if faster start-up is required , go to sleep with internal oscillator as system clock. 20. rtc counter value not correctly read after sleep if the rtc is set to wake up the device on rt c overflow and bit 0 of rtc cnt is identical to bit 0 of rtc per as the device is entering sleep, the value in the rtc count register can not be read correctly within the first prescaled rtc clock cycle after wakeup. the value read will be the same as the value in the register when entering sleep. the same applies if rtc compare match is used as wake-up source. problem fix/workaround w ait at least one prescaled rtc clock cycle before reading the rtc cnt value. 21. pending asynchronous rtc-inte rrupts will not wa ke up device asynchronous interrupts from the real-time-counter that is pending when the sleep instruction is executed, will be ignored until the device is woken from another source or the source triggers again. problem fix/workaround none. 22. twi transmit collision flag not cleared on repeated start the t w i transmit collision flag should be automatically cleared on start and repeated start, but is only cleared on start.
95 8135j?avr?12/10 xmega d4 problem fix/workaround clear the flag in software after address interrupt. 23. clearing twi stop interrupt flag may lock the bus if software clears the stop interrupt flag (apif) on the same peripheral clock cycle as the hardware sets this flag due to a new address received, clkhold is not cleared and the scl line is not released. this will lock the bus. problem fix/workaround check if the bus state is idle. if this is the case, it is safe to clear apif. if the bus state is not idle, wait for the scl pin to be low before clearing apif. code: /* only clear the interrupt flag if within a "safe zone". */ while ( /* bus not idle: */ ((comms_twi.master.status & twi_master_busstate_gm) != twi_master_busstate_idle_gc)) && /* scl not held by slave: */ !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* ensure that the scl line is low */ if ( !(comms_port.in & pin1_bm) ) if ( !(comms_port.in & pin1_bm) ) break; } /* check for an pending address match interrupt */ if ( !(comms_twi.slave.status & twi_slave_clkhold_bm) ) { /* safely clear interrupt flag */ comms_twi.slave.status |= (uint8_t)twi_slave_apif_bm; } 24. twi start condition at bus timeout will cause transaction to be dropped if bus timeout is enabled and a timeout occurs on the same peripheral clock cycle as a start is detected, the tr ansaction will be dropped. problem fix/workaround none. 25. twi data interrupt flag erroneously read as set w hen issuing the t w i slave response command cmd=0b11, it takes 1 peripheral clock cycle to clear the data interrupt flag (dif). a read of dif directly after issuing the command will show the dif still set. problem fix/workaround add one nop instruction before checking dif. 26. wdr instruction inside closed window will not issue reset w hen a w dr instruction is execute within one ulp clock cycle after updating the window control register, the counter can be cleared without giving a system reset.
96 8135j?avr?12/10 xmega d4 problem fix/workaround w ait at least one ulp clock cycle before executing a w dr instruction. 27. twie is not available the t w i module on porte, t w ie is not available problem fix/workaround use the identical t w i module on portc, t w ic instead. 28. inverted i/o enable does not affect analog comparator output the inverted i/o pin function does not affect the analog comparator output function problem fix/workaround configure the analog comparator setup to give an inverted result, or use an external inverter to change polarity of analog comparator output.
97 8135j?avr?12/10 xmega d4 34. datasheet revision history please note that the referring page numbers in th is section are referred to this document. the referring revisions in this section are referring to the document revision. 34.1 8135j ? 12/10 34.2 8135i ? 10/10 34.3 8135h ? 09/10 34.4 8135g ? 08/10 34.5 8135f ? 02/10 1. datasheet status changed to complete: preliminary removed from the front page. 2. updated all tables in the ?electrical characteristics? . 3. replaced table 31-11 on page 64 4. replaced table 31-17 on page 65 and added the figure ?tosc input capacitance? on page 66 5. updated errata adc (adc has increased inl for some operating conditions). 6. updated errata ?rev. a/b? on page 90 with t w ie (t w ie is not available). 7. updated the last page with atmel new brand style guide. 1. updated table 31-1 on page 58 . 1. updated ?errata? on page 90 . 1. updated the footnote 3 of ?ordering information? on page 2 . 2. all references to crc removed. updated figure 3-1 on page 6 . 3. updated ?features? on page 26 . event channel 0 output on port pin 7. 4. updated ?dc characteristics? on page 58 by adding icc for flash/eeprom programming. 5. added avcc in ?adc characteristics? on page 62 . 6. updated start up time in ?adc characteristics? on page 62 . 7. updated and fixed typo in ?errata? section. 1. added ?pdi speed? on page 89 .
98 8135j?avr?12/10 xmega d4 34.6 8135e ? 02/10 34.7 8135d ? 12/09 34.8 8135c ? 10/09 1. updated the device pin-out figure 2-1 on page 3 . pdi_clk and pdi_data renamed only pdi. 2. updated table 7-3 on page 14 . no of pages for ATXMEGA32D4: 32 3. updated ?alternate port functions? on page 29 . 4. updated ?adc - 12-bit analog to digital converter? on page 39 . 5. updated figure 23-1 on page 40 . 6. updated ?alternate pin functions? on page 48 . 7. updated ?timer/counter and a w ex functions? on page 46 . 8. added table 31-17 on page 65 . 9. added table 31-18 on page 66 . 10. changed internal oscillator speed to ?oscillators and w ake-up time? on page 85 . 11. updated ?errata? on page 90 . 1. added atxmega128d4 device and updated the datasheet accordingly. 2. updated ?electrical characteristics? on page 58 with max/min numbers. 3. added ?flash and eeprom memory characteristics? on page 61 . 4. updated table 31-10 on page 64 , input hysteresis is in v and not in mv. 5. added ?errata? on page 90 . 1. updated ?features? on page 1 with two two- w ire interfaces. 2. updated ?bock diagram and tqfp/qfn pinout? on page 3 . 3. updated ?overview? on page 5 . 4. updated ?xmega d4 block diagram? on page 6 . 5. updated table 13-1 on page 24 . 6. updated ?overview? on page 35 . 7. updated table 27-5 on page 49 . 8. updated ?peripheral module address map? on page 50 .
99 8135j?avr?12/10 xmega d4 34.9 8135b ? 09/09 34.10 8135a ? 03/09 1. added ?electrical characteri stics? on page 58 . 2. added ?typical characteristics? on page 67 . 1. initial revision.
i 8135j?avr?12/10 xmega d4 table of contents features ................ ................ .............. ............... .............. .............. ............ 1 typical applications .............. .............. .............. .............. .............. .......... 1 1 ordering information .......... .............. ............... .............. .............. ............ 2 2 pinout/block diagram ......... .............. ............... .............. .............. ............ 3 3 overview ............ ................ ................ ............... .............. .............. ............ 5 3.1 block diagram ...................................................................................................6 4 resources .............. .............. .............. ............... .............. .............. ............ 7 4.1 recommended reading .....................................................................................7 5 disclaimer .............. .............. .............. ............... .............. .............. ............ 7 6 avr cpu ............ ................ ................ ............... .............. .............. ............ 8 6.1 features ............................................................................................................8 6.2 overview ............................................................................................................8 6.3 register file ......................................................................................................9 6.4 alu - arithmetic logic unit ...............................................................................9 6.5 program flow ....................................................................................................9 7 memories ............... .............. .............. ............... .............. .............. .......... 10 7.1 features ..........................................................................................................10 7.2 overview ..........................................................................................................10 7.3 in-system programmable flash program memory .........................................11 7.4 data memory ...................................................................................................12 7.5 production signature row ...............................................................................13 7.6 user signature row ........................................................................................13 7.7 flash and eeprom page size ............. ................ ................ ................ ..........13 8 event system ........ .............. .............. ............... .............. .............. .......... 15 8.1 features ..........................................................................................................15 8.2 overview ..........................................................................................................15 9 system clock and clock options ................ ................. .............. .......... 17 9.1 features ..........................................................................................................17 9.2 overview ..........................................................................................................17 9.3 clock options ..................................................................................................18 10 power management and sleep modes ........ ................. .............. .......... 20
ii 8135j?avr?12/10 xmega d4 10.1 features ..........................................................................................................20 10.2 overview ..........................................................................................................20 10.3 sleep modes ....................................................................................................20 11 system control and reset .... .............. .............. .............. .............. ........ 22 11.1 features ..........................................................................................................22 11.2 resetting the avr ...........................................................................................22 11.3 reset sources .................................................................................................22 12 wdt - watchdog timer ......... .............. .............. .............. .............. ........ 23 12.1 features ..........................................................................................................23 12.2 overview ..........................................................................................................23 13 pmic - programmable multi-l evel interrupt controller ............. .......... 24 13.1 features ..........................................................................................................24 13.2 overview ..........................................................................................................24 13.3 interrupt vectors ...............................................................................................24 14 i/o ports ............... ................ .............. ............... .............. .............. .......... 26 14.1 features ..........................................................................................................26 14.2 overview ..........................................................................................................26 14.3 i/o configuration ..............................................................................................26 14.4 input sensing ...................................................................................................29 14.5 port interrupt ....................................................................................................29 14.6 alternate port functions ..................................................................................29 15 t/c - 16-bit timer/counter .. .............. ............... .............. .............. .......... 30 15.1 features ..........................................................................................................30 15.2 overview ..........................................................................................................30 16 awex - advanced waveform extension .... ................. .............. .......... 32 16.1 features ..........................................................................................................32 16.2 overview ..........................................................................................................32 17 hi-res - high resolution extension .......... ................ ................. .......... 33 17.1 features ..........................................................................................................33 17.2 overview ..........................................................................................................33 18 rtc - 16-bit real-tim e counter ....... ............... .............. .............. .......... 34 18.1 features ..........................................................................................................34 18.2 overview ..........................................................................................................34
iii 8135j?avr?12/10 xmega d4 19 twi - two-wire interface .... .............. ............... .............. .............. .......... 35 19.1 features ..........................................................................................................35 19.2 overview ..........................................................................................................35 20 spi - serial peripher al interface ............ .............. .............. ............ ........ 36 20.1 features ..........................................................................................................36 20.2 overview ..........................................................................................................36 21 usart ............. ................. ................ ................. .............. .............. .......... 37 21.1 features ..........................................................................................................37 21.2 overview ..........................................................................................................37 22 ircom - ir communication module .............. .............. .............. .......... 38 22.1 features ..........................................................................................................38 22.2 overview ..........................................................................................................38 23 adc - 12-bit analog to digi tal converter ....... .............. .............. .......... 39 23.1 features ..........................................................................................................39 23.2 overview ..........................................................................................................39 24 ac - analog comparator .... .............. ............... .............. .............. .......... 41 24.1 features ..........................................................................................................41 24.2 overview ..........................................................................................................41 24.3 input selection .................................................................................................43 24.4 w indow function .............................................................................................43 25 ocd - on-chip debug ......... .............. ............... .............. .............. .......... 44 25.1 features ..........................................................................................................44 25.2 overview ..........................................................................................................44 26 pdi - program and debug interface .......... ................ ................. .......... 45 26.1 features ..........................................................................................................45 26.2 overview ..........................................................................................................45 26.3 pdi - program and debug interface ................................................................45 27 pinout and pin functions ................. ............... .............. .............. .......... 46 27.1 alternate pin functions description ................................................................46 27.2 alternate pin functions ...................................................................................48 28 peripheral module addr ess map ............... ................ ................. .......... 50 29 instruction set summary ... .............. ............... .............. .............. .......... 51
iv 8135j?avr?12/10 xmega d4 30 packaging information .......... .............. .............. .............. .............. ........ 55 30.1 44a ..................................................................................................................55 30.2 44m1 ................................................................................................................56 30.3 49c2 ................................................................................................................57 31 electrical characteristics ... .............. ............... .............. .............. .......... 58 31.1 absolute maximum ratings* ...........................................................................58 31.2 dc characteristics ...........................................................................................58 31.3 speed ..............................................................................................................60 31.4 flash and eeprom memory characterist ics .............. ............ ............. ..........61 31.5 adc characteristics ........................................................................................62 31.6 analog comparator characteristics .................................................................63 31.7 bandgap characteristics .................................................................................63 31.8 brownout detection characteristics ................................................................63 31.9 pad characteristics ........................................................................................64 31.10 por characteristics ........................................................................................64 31.11 reset characteristics ......................................................................................64 31.12 oscillator characteristics .................................................................................65 32 typical characteristics ....... .............. ............... .............. .............. .......... 67 32.1 active supply current ......................................................................................67 32.2 idle supply current ..........................................................................................70 32.3 power-down supply current ............................................................................74 32.4 power-save supply current .............................................................................75 32.5 pin pull-up .......................................................................................................75 32.6 pin output voltage vs. sink/source current ...................................................77 32.7 pin thresholds and hysteresis ........................................................................80 32.8 bod thresholds ...............................................................................................82 32.9 analog comparator .........................................................................................83 32.10 oscillators and w ake-up time ........................................................................85 32.11 module current consumption ...........................................................................87 32.12 reset pulsewidth .............................................................................................88 32.13 pdi speed .......................................................................................................89 33 errata ............. ................ ................. ................ ................. .............. .......... 90 33.1 atxmega16d4, ATXMEGA32D4 .......................................................................90 34 datasheet revision history .. .............. .............. .............. .............. ........ 97 34.1 8135j ? 12/10 ..................................................................................................97
34.2 8135i ? 10/10 ...................................................................................................97 34.3 8135h ? 09/10 .................................................................................................97 34.4 8135g ? 08/10 .................................................................................................97 34.5 8135f ? 02/10 .................................................................................................97 34.6 8135e ? 02/10 .................................................................................................98 34.7 8135d ? 12/09 .................................................................................................98 34.8 8135c ? 10/09 .................................................................................................98 34.9 8135b ? 09/09 .................................................................................................99 34.10 8135a ? 03/09 .................................................................................................99 table of contents.......... ................. ................ ................. ................ ........... i
8135j?avr?12/10 atmel corporation 2325 orchard parkway san jose, ca 95131 usa tel : (+1)(408) 441-0311 fax : (+1)(408) 487-2600 www.atmel.com atmel asia limited unit 1-5 & 16, 19/f bea tower, millennium city 5 418 kwun tong road kwun tong, kowloon hong kong tel : (+852) 2245-6100 fax : (+852) 2722-1369 atmel munich gmbh business campus parkring 4 d-85748 garching b. munich germany tel : (+49) 89-31970-0 fax : (+49) 89-3194621 atmel japan 9f, tonetsu shinkawa bldg. 1-24-8 shinkawa chuo-ku, tokyo 104-0033 japan tel : (+81)(3) 3523-3551 fax : (+81)(3) 3523-7581 ? 2010 atmel corporation. all rights reserved. / rev. corp0xxxx atmel ? , atmel logo and combinations thereof, avr ? , avr ? logo, xmega ? and others are registered trademarks or trademarks of atmel corporation or its subsidiaries. other terms and product names may be trademarks of others. disclaimer: the information in this document is provided in connection wi th atmel products. no license, ex press or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of atmel products. except as set forth in the atmel terms and conditions of sales located on the atmel website, atmel assumes no liability whatsoever and disclaims any express, implied or statutory warranty relating to its pro ducts including, but not limited to, the implied warranty of merchantability, fitness for a particular purp ose, or non-infringement. in no even t shall atmel be liable for any direct, indirect, consequential, punitive, special or incidental damages (including, without limitati on, damages for loss and prof- its, business interruption, or loss of information) arising out of the use or inability to use this document, even if atmel has been advised of the possibility of such damages. atmel makes no representations or warranties with respect to the accuracy or com- pleteness of the contents of th is document and reserves the right to make changes to specifications and product descriptions at any time without notice. atmel does not make any commitment to update the information cont ained herein. unless specifically provided otherwise, atmel pr oducts are not suit- able for, and shall not be used in, automotive applications. atme l products are not intended, authorized, or warranted for use as components in applica- tions intended to support or sustain life.


▲Up To Search▲   

 
Price & Availability of ATXMEGA32D4

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X